mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
lib/c: fix coverity DEADCODE
criu-3.12/lib/c/criu.c:869: dead_error_line: Execution cannot reach this statement: "free(ptr);". criu-3.12/lib/c/criu.c:906: dead_error_line: Execution cannot reach this statement: "free(ptr);". Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
27dd87e99a
commit
fe1c72a098
1 changed files with 0 additions and 4 deletions
|
|
@ -866,8 +866,6 @@ int criu_local_add_enable_fs(criu_opts *opts, const char *fs)
|
|||
err:
|
||||
if (str)
|
||||
free(str);
|
||||
if (ptr)
|
||||
free(ptr);
|
||||
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
|
@ -903,8 +901,6 @@ int criu_local_add_skip_mnt(criu_opts *opts, const char *mnt)
|
|||
err:
|
||||
if (str)
|
||||
free(str);
|
||||
if (ptr)
|
||||
free(ptr);
|
||||
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue