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;
Thanks, I queued a fix.