chiark / gitweb /
fix a couple of issues found with llvm-analyze
[elogind.git] / src / core / namespace.c
index 4bef15fdf570941a91e1e5fd18a6c8c2cd334346..ce10c790742c92bd35caf07bea1532d2b14479eb 100644 (file)
@@ -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,