Commit 7071d520 authored by Libo Chen's avatar Libo Chen Committed by Pavel Emelyanov

filelock: fix potential fl memleak

when is_blocked is seted, we should free file_lock
Signed-off-by: 's avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 37b586f0
...@@ -1130,6 +1130,7 @@ int parse_file_locks(void) ...@@ -1130,6 +1130,7 @@ int parse_file_locks(void)
*/ */
pr_perror("We have a blocked file lock!"); pr_perror("We have a blocked file lock!");
ret = -1; ret = -1;
xfree(fl);
goto err; goto err;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment