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>
This commit is contained in:
Andrey Vagin 2015-08-24 01:26:26 +03:00 committed by Pavel Emelyanov
parent bba4000c40
commit 5075f278f6

View file

@ -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;
}