From: Eric Paris Date: Wed, 3 Sep 2008 15:49:47 +0000 (-0400) Subject: SELinux: memory leak in security_context_to_sid_core X-Git-Tag: v2.6.27-rc6~45^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e531af90f3940615623dc0aa6c94866a6773601;p=pandora-kernel.git SELinux: memory leak in security_context_to_sid_core Fix a bug and a philosophical decision about who handles errors. security_context_to_sid_core() was leaking a context in the common case. This was causing problems on fedora systems which recently have started making extensive use of this function. In discussion it was decided that if string_to_context_struct() had an error it was its own responsibility to clean up any mess it created along the way. Signed-off-by: Eric Paris Acked-by: Stephen Smalley Signed-off-by: James Morris --- Reading git-diff-tree failed