Skip to content

Commit 2d24773

Browse files
committed
Use cleanup_event to free events
1 parent e7cbe03 commit 2d24773

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/auditd-reconfig.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ int start_config_manager(struct auditd_event *e)
6363
config_thread_main, e) > 0) {
6464
audit_msg(LOG_ERR,
6565
"Couldn't create config thread, no config changes");
66-
free(e);
66+
cleanup_event(e);
6767
pthread_mutex_unlock(&config_lock);
6868
rc = 1;
6969
}
7070
pthread_attr_destroy(&detached);
7171
} else {
7272
audit_msg(LOG_ERR,
7373
"Config thread already running, no config changes");
74-
free(e);
74+
cleanup_event(e);
7575
rc = 1;
7676
}
7777
return rc;
@@ -115,7 +115,7 @@ static void *config_thread_main(void *arg)
115115
&e->reply, "failed");
116116
send_audit_event(AUDIT_DAEMON_CONFIG, txt);
117117
free_config(&new_config);
118-
free(e);
118+
cleanup_event(e);
119119
}
120120

121121
pthread_mutex_unlock(&config_lock);

0 commit comments

Comments
 (0)