summaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-06 23:52:17 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-06 23:52:17 +0100
commit86a3475bc5087da2a28015247ff18672905044f4 (patch)
treeccdb994527bfd7f15c7951ab3f7f63b2c2e0c441 /src/execute.c
parent2c4b304e64ca674e1a79a7e5c83a996a03611a17 (diff)
execute,util: fix two small memory leaks
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/execute.c b/src/execute.c
index 8f486e2004..1e8dfaf770 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -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) {