libcriu: fix coverity RESOURCE_LEAK

criu-3.12/lib/c/criu.c:255: leaked_storage: Variable "rpc" going out of
scope leaks the storage it points to.

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber 2019-05-14 16:55:20 +00:00 committed by Andrei Vagin
parent 688f02a139
commit 27dd87e99a

View file

@ -252,6 +252,7 @@ int criu_local_init_opts(criu_opts **o)
if (opts == NULL) {
perror("Can't allocate memory for criu opts");
criu_local_free_opts(opts);
free(rpc);
return -1;
}