2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

pstree: Return in case of error in parse_threads()

Add missed return on memory allocation fail branch.
Found by coverity.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Kirill Tkhai
2017-05-11 13:45:19 +03:00
committed by Andrei Vagin
parent dfc97293e0
commit 9c336c04ba

View File

@@ -2339,6 +2339,7 @@ int parse_threads(int pid, struct pid ***_t, int *_n)
while (--nr > 0)
xfree(t[nr-1]);
xfree(t);
return -1;
}
t[nr - 1]->ns[0].virt = -1;
}