[CRIU] [PATCH] kerdat: don't leak a file descriptor

Pavel Emelyanov xemul at parallels.com
Tue May 5 03:39:26 PDT 2015


On 05/01/2015 02:06 PM, Andrey Vagin wrote:
> 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: Andrey Vagin <avagin at openvz.org>

Applied



More information about the CRIU mailing list