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
(from parent 1:
25ea79f
)
nspawn: fix memleak introduced with automatic cleanup
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 16 Sep 2012 14:33:20 +0000
(16:33 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sun, 16 Sep 2012 14:33:20 +0000
(16:33 +0200)
6b2d0e8
introduced a memleak instead of fixing one.
Fix both.
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index b494045b8853212a188f9d5ba25ca25aa93ccd75..ab7a239ed59f7d7df91425a675e4a2feaa195722 100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-284,9
+284,9
@@
static int mount_all(const char *dest) {
unsigned k;
int r = 0;
- char _cleanup_free_ *where = NULL;
for (k = 0; k < ELEMENTSOF(mount_table); k++) {
+ char _cleanup_free_ *where = NULL;
int t;
if (asprintf(&where, "%s/%s", dest, mount_table[k].where) < 0) {