[CRIU] [PATCH 4/4] proc-parse: Rework error paths

Cyrill Gorcunov gorcunov at openvz.org
Thu Apr 11 18:17:00 EDT 2013


On error paths we don't explicitly close procfile.

CID 996191 (#5 of 6): Resource leak (RESOURCE_LEAK)
22. leaked_storage: Variable "f" going out of scope leaks the storage it points to.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 proc_parse.c | 32 ++++++++++++++++++++------------
 1 file changed, 20 insertions(+), 12 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-proc-parse-Rework-error-paths.patch
Type: text/x-patch
Size: 2607 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130412/8f7a77dd/attachment.bin>


More information about the CRIU mailing list