From 86a3475bc5087da2a28015247ff18672905044f4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 6 Jan 2011 23:52:17 +0100 Subject: execute,util: fix two small memory leaks --- src/execute.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/execute.c') 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) { -- cgit v1.2.3-54-g00ecf