diff options
author | Andrey Vagin <avagin@openvz.org> | 2015-08-24 01:26:26 +0300 |
---|---|---|
committer | Pavel Emelyanov <xemul@parallels.com> | 2015-08-25 16:00:29 +0300 |
commit | 5075f278f63fa0e4c5c66a66c18e4e35c0956af3 (patch) | |
tree | cbe566b4d922e0470e17a0d010da89a7942aed7e | |
parent | bba4000c40a8cb1e7535a0e7a244975bd3b3d4fd (diff) |
test/rpc: don't call criu_resp__free_unpacked for NULL
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
-rw-r--r-- | test/rpc/test-c.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |