chiark / gitweb /
execute: free syscall filter array after use
authorLennart Poettering <lennart@poettering.net>
Tue, 17 Jul 2012 13:55:23 +0000 (15:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Jul 2012 13:55:23 +0000 (15:55 +0200)
src/core/execute.c

index 7a72aa4..db4a8ae 100644 (file)
@@ -1609,6 +1609,9 @@ void exec_context_done(ExecContext *c) {
 
         free(c->utmp_id);
         c->utmp_id = NULL;
+
+        free(c->syscall_filter);
+        c->syscall_filter = NULL;
 }
 
 void exec_command_done(ExecCommand *c) {