chiark / gitweb /
execute,util: fix two small memory leaks
[elogind.git] / src / execute.c
index 8f486e2004a1f43923d77a2b80bd81692e475206..1e8dfaf7700fa7f62f712105b570e73062873fbb 100644 (file)
@@ -1406,6 +1406,9 @@ void exec_context_done(ExecContext *c) {
 
         if (c->cpuset)
                 CPU_FREE(c->cpuset);
+
+        free(c->utmp_id);
+        c->utmp_id = NULL;
 }
 
 void exec_command_done(ExecCommand *c) {