]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e30ca6ce385f1f7803a0721aa953718702a0c3d
tree8e32efc47c52a218bfb4eb517ae2ba14d496adcc
parent47e19315241d5936678419133d92b5941d723431
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