Bug 10663 - [linux-2.6/kernel/audit.c:575]: Memory leak: reply
Summary: [linux-2.6/kernel/audit.c:575]: Memory leak: reply
Status: RESOLVED CODE_FIX
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 05:36 UTC by Daniel Marjamäki
Modified: 2008-05-12 15:31 UTC (History)
0 users

See Also:
Kernel Version: latest git tree
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Daniel Marjamäki 2008-05-10 05:36:42 UTC
The 'reply' is not deallocated if skb becomes NULL:

	struct audit_reply *reply = kmalloc(sizeof(struct audit_reply),
					    GFP_KERNEL);

	if (!reply)
		return;

	skb = audit_make_reply(pid, seq, type, done, multi, payload, size);
	if (!skb)
		return;
Comment 1 Andrew Morton 2008-05-12 15:31:51 UTC
Thanks, I queued a fix.

Note You need to log in before you can comment on or make changes to this bug.