From 5075f278f63fa0e4c5c66a66c18e4e35c0956af3 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Mon, 24 Aug 2015 01:26:26 +0300 Subject: [PATCH] test/rpc: don't call criu_resp__free_unpacked for NULL Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- test/rpc/test-c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/rpc/test-c.c b/test/rpc/test-c.c index 9ef577848..490a07a4f 100644 --- a/test/rpc/test-c.c +++ b/test/rpc/test-c.c @@ -164,6 +164,7 @@ int main(int argc, char *argv[]) exit: close(fd); close(dir_fd); - criu_resp__free_unpacked(resp, NULL); + if (resp) + criu_resp__free_unpacked(resp, NULL); return ret; }