mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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:
parent
688f02a139
commit
27dd87e99a
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue