X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fnamespace.c;h=ce10c790742c92bd35caf07bea1532d2b14479eb;hb=fd5b4ca11ea2b8a82343bc0db6a2f422beb305f1;hp=4bef15fdf570941a91e1e5fd18a6c8c2cd334346;hpb=c1d70f7ca5eeeb3850161444028ba227f79df83e;p=elogind.git diff --git a/src/core/namespace.c b/src/core/namespace.c index 4bef15fdf..ce10c7907 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -312,6 +312,8 @@ int setup_namespace( goto undo_mounts; } + free(paths); + t = old_root_dir + sizeof(root_dir) - 1; if (umount2(t, MNT_DETACH) < 0) /* At this point it's too late to turn anything back,