uxc: don't free the stack
authorDaniel Golle <daniel@makrotopia.org>
Tue, 12 Oct 2021 22:59:10 +0000 (23:59 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 12 Oct 2021 23:35:43 +0000 (00:35 +0100)
It's generally a bad idea to free variables which are stored on stack.
Better don't do that ;)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
uxc.c

diff --git a/uxc.c b/uxc.c
index a896d5ff148b6a8c1d4a43b0e751764452dec4ba..b33513f5c33d2fc51855b86eb8b1bbab8ecc4a28 100644 (file)
--- a/uxc.c
+++ b/uxc.c
@@ -590,9 +590,6 @@ static int uxc_create(char *name, bool immediately)
                ret = EIO;
        }
 
-       free(jailname);
-       free(path);
-
        return ret;
 }