mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
filelock: fix potential fl memleak
when is_blocked is seted, we should free file_lock Signed-off-by: Libo Chen <libo.chen@huawei.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
37b586f055
commit
7071d52088
@@ -1130,6 +1130,7 @@ int parse_file_locks(void)
|
||||
*/
|
||||
pr_perror("We have a blocked file lock!");
|
||||
ret = -1;
|
||||
xfree(fl);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user