aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/auditfilter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c
index f9fc54bbe06f..267436826c3b 100644
--- a/kernel/auditfilter.c
+++ b/kernel/auditfilter.c
@@ -594,6 +594,10 @@ exit_nofree:
594 return entry; 594 return entry;
595 595
596exit_free: 596exit_free:
597 if (entry->rule.watch)
598 audit_put_watch(entry->rule.watch); /* matches initial get */
599 if (entry->rule.tree)
600 audit_put_tree(entry->rule.tree); /* that's the temporary one */
597 audit_free_rule(entry); 601 audit_free_rule(entry);
598 return ERR_PTR(err); 602 return ERR_PTR(err);
599} 603}