chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
execute,util: fix two small memory leaks
[elogind.git]
/
src
/
execute.c
diff --git
a/src/execute.c
b/src/execute.c
index 8f486e2004a1f43923d77a2b80bd81692e475206..1e8dfaf7700fa7f62f712105b570e73062873fbb 100644
(file)
--- 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) {