Skip to content
Commit 59bb6880 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov
Browse files

kerdat: don't leak a file descriptor



288             if (flock(fd, LOCK_SH)) {
289                     pr_perror("Can't take a lock\n");
>>> >>>     CID 92726:  Resource leaks  (RESOURCE_LEAK)
>>> >>>     Handle variable "fd" going out of scope leaks the handle.
290                     return -1;
291             }

Signed-off-by: default avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: default avatarPavel Emelyanov <xemul@parallels.com>
parent 8ac865f3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment