mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-20 01:54:28 +00:00
files-reg: Resource leak (RESOURCE_LEAK)
CID 302712 (#1 of 1): Resource leak (RESOURCE_LEAK) Variable build_id going out of scope leaks the storage it points to. Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
da5a4d6e57
commit
4e7e26b702
1 changed files with 1 additions and 0 deletions
|
|
@ -1619,6 +1619,7 @@ static int store_validation_data_build_id(RegFileEntry *rfe, int lfd,
|
|||
if (!rfe->build_id) {
|
||||
pr_warn("Build-ID (For validation) could not be set for file %s\n",
|
||||
rfe->name);
|
||||
xfree(build_id);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue