Bug 10663

Summary: [linux-2.6/kernel/audit.c:575]: Memory leak: reply
Product: Other Reporter: Daniel Marjamäki (danielm77)
Component: OtherAssignee: other_other
Status: RESOLVED CODE_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: latest git tree Subsystem:
Regression: --- Bisected commit-id:

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.