Skip to content

Commit f58781c

Browse files
committed
Merge branch 'stable-4.13' of git://git.infradead.org/users/pcmoore/audit
Pull audit fix from Paul Moore: "A small audit fix, just a single line, to plug a memory leak in some audit error handling code" * 'stable-4.13' of git://git.infradead.org/users/pcmoore/audit: audit: fix memleak in auditd_send_unicast_skb.
2 parents ae1c908 + b0659ae commit f58781c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/audit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ static int auditd_send_unicast_skb(struct sk_buff *skb)
641641
ac = rcu_dereference(auditd_conn);
642642
if (!ac) {
643643
rcu_read_unlock();
644+
kfree_skb(skb);
644645
rc = -ECONNREFUSED;
645646
goto err;
646647
}

0 commit comments

Comments
 (0)