diff options
author | [email protected] <[email protected]> | 2010-11-10 11:31:55 +0800 |
---|---|---|
committer | James Morris <[email protected]> | 2010-11-11 07:36:18 +1100 |
commit | 246c3fb16b08193837a8009ff15ef6908534ba71 (patch) | |
tree | 47c8fb1d63c3f0cfd7c3e1507e6c1e16a6837264 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | f6614b7bb405a9b35dd28baea989a749492c46b2 (diff) |
APPARMOR: Fix memory leak of alloc_namespace()
policy->name is a substring of policy->hname, if prefix is not NULL, it will
allocted strlen(prefix) + strlen(name) + 3 bytes to policy->hname in policy_init().
use kzfree(ns->base.name) will casue memory leak if alloc_namespace() failed.
Signed-off-by: Zhitong Wang <[email protected]>
Signed-off-by: John Johansen <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions