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