[CRIU] [PATCH 4/5] files: Don't double-close the image fd on error

Pavel Emelyanov xemul at parallels.com
Tue Aug 5 01:58:17 PDT 2014


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>

---
 files.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/files.c b/files.c
index 83e2b56..309bb34 100644
--- a/files.c
+++ b/files.c
@@ -1111,6 +1111,8 @@ ok:
 
 out_f:
 	fs_entry__free_unpacked(fe, NULL);
+	return -1;
+
 out_i:
 	close(ifd);
 out:
-- 
1.8.4.2




More information about the CRIU mailing list