chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d9eaa2d
)
systemctl: plug a leak upon create_symlink mismatch
author
Jim Meyering
<jim@meyering.net>
Wed, 15 Jun 2011 18:13:54 +0000
(20:13 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 15 Jun 2011 18:44:28 +0000
(20:44 +0200)
src/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl.c
b/src/systemctl.c
index 5a0055bdfb92cf72b0160789f01302f03b3ea980..08c7fabb7aca8a6a56d89248624d976b9da62415 100644
(file)
--- a/
src/systemctl.c
+++ b/
src/systemctl.c
@@
-3963,6
+3963,7
@@
static int create_symlink(const char *verb, const char *old_path, const char *ne
return 1;
}
return 1;
}
+ free(dest);
return 0;
}
return 0;
}