]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
trusted keys: Fix a memory leak in trusted_update().
authorJesper Juhl <jj@chaosbits.net>
Sun, 23 Jan 2011 21:40:42 +0000 (22:40 +0100)
committerJames Morris <jmorris@namei.org>
Sun, 23 Jan 2011 23:59:58 +0000 (10:59 +1100)
commit5403110943a2dcf1f96416d7a412a8b46895facd
tree48e3501e71511200c911315b8bdffde4788d357d
parent7f3c68bee977ab872827e44de017216736fe21d7
trusted keys: Fix a memory leak in trusted_update().

One failure path in security/keys/trusted.c::trusted_update() does
not free 'new_p' while the others do. This patch makes sure we also free
it in the remaining path (if datablob_parse() returns different from
Opt_update).

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/trusted.c