[CRIU] [PATCH] sysctl: Don't forget to close fds
Pavel Emelyanov
xemul at parallels.com
Fri Apr 5 00:23:31 EDT 2013
On 04/04/2013 11:27 PM, Cyrill Gorcunov wrote:
> In case if openat/open call returned fd = 0,
> don't forget to close it on routine exit,
> ie just use close_safe macro.
>
> Not a big deal since the descriptors get closed
> once program finish execution but still.
>
> #CID 996183 Resource leak
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
Applied
More information about the CRIU
mailing list