Commit 8da91fff authored by Stefan Weil's avatar Stefan Weil Committed by Aurelien Jarno
Browse files

tests: Fix two memory leaks



Although both leaks are not really important, fix them
to avoid cppcheck warnings:

tests/linux-test.c:433: error: Memory leak: stack1
tests/linux-test.c:433: error: Memory leak: stack2
Signed-off-by: default avatarStefan Weil <weil@mail.berlios.de>
Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent 1bbd185f
......@@ -426,7 +426,9 @@ void test_clone(void)
CLONE_VM | CLONE_FS | CLONE_FILES | SIGCHLD, "hello2"));
while (waitpid(pid1, &status1, 0) != pid1);
free(stack1);
while (waitpid(pid2, &status2, 0) != pid2);
free(stack2);
if (thread1_res != 5 ||
thread2_res != 6)
error("clone");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment