SELinux: fix memory leakage in /security/selinux/hooks.c
authorJames Morris <jmorris@namei.org>
Mon, 10 Aug 2009 12:00:13 +0000 (22:00 +1000)
committerJames Morris <jmorris@namei.org>
Mon, 10 Aug 2009 22:37:13 +0000 (08:37 +1000)
commit314dabb83a547ec4da819e8cbc78fac9cec605cd
tree8e32efc47c52a218bfb4eb517ae2ba14d496adcc
parent85dfd81dc57e8183a277ddd7a56aa65c96f3f487
SELinux: fix memory leakage in /security/selinux/hooks.c

Fix memory leakage in /security/selinux/hooks.c

The buffer always needs to be freed here; we either error
out or allocate more memory.

Reported-by: iceberg <strakh@ispras.ru>
Signed-off-by: James Morris <jmorris@namei.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
security/selinux/hooks.c