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)
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>

No differences found