]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/auditfilter.c
kernel/timer.c: convert compat_sys_sysinfo to COMPAT_SYSCALL_DEFINE
[karo-tx-linux.git] / kernel / auditfilter.c
index f9fc54bbe06faa3e845e19871d15ace3e6c5e1b3..267436826c3bc179678a57de72cf08220fa8faca 100644 (file)
@@ -594,6 +594,10 @@ exit_nofree:
        return entry;
 
 exit_free:
+       if (entry->rule.watch)
+               audit_put_watch(entry->rule.watch); /* matches initial get */
+       if (entry->rule.tree)
+               audit_put_tree(entry->rule.tree); /* that's the temporary one */
        audit_free_rule(entry);
        return ERR_PTR(err);
 }