[systemd-commits] src/nspawn
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Sun Sep 16 07:34:09 PDT 2012
src/nspawn/nspawn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 89154bd4ac71157e382bacdc4dc3a96990940d36
Author: Zbigniew JÄdrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Sep 16 16:33:20 2012 +0200
nspawn: fix memleak introduced with automatic cleanup
6b2d0e8 introduced a memleak instead of fixing one.
Fix both.
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index b494045..ab7a239 100644
--- 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) {
More information about the systemd-commits
mailing list