Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142019
b: refs/heads/master
c: c28bb7d
h: refs/heads/master
i:
  142017: 422edf5
  142015: ecf7718
v: v3
  • Loading branch information
Zhenwen Xu authored and Al Viro committed Apr 5, 2009
1 parent fa06a47 commit a254f95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b96255998053a89f45c0855de954b71f5c3887b
refs/heads/master: c28bb7da74ab74a2860d652493aaff7de104d79e
16 changes: 8 additions & 8 deletions trunk/kernel/auditfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ static void audit_remove_watch(struct audit_watch *watch)
static inline void audit_free_rule(struct audit_entry *e)
{
int i;

struct audit_krule *erule = &e->rule;
/* some rules don't have associated watches */
if (e->rule.watch)
audit_put_watch(e->rule.watch);
if (e->rule.fields)
for (i = 0; i < e->rule.field_count; i++) {
struct audit_field *f = &e->rule.fields[i];
if (erule->watch)
audit_put_watch(erule->watch);
if (erule->fields)
for (i = 0; i < erule->field_count; i++) {
struct audit_field *f = &erule->fields[i];
kfree(f->lsm_str);
security_audit_rule_free(f->lsm_rule);
}
kfree(e->rule.fields);
kfree(e->rule.filterkey);
kfree(erule->fields);
kfree(erule->filterkey);
kfree(e);
}

Expand Down

0 comments on commit a254f95

Please sign in to comment.