[lxc-devel] [PATCH] call fclose() for pid_fp on failure

S.Çağlar Onur caglar at 10ur.org
Sat Dec 7 19:16:46 UTC 2013


Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
---
 src/lxc/lxc_start.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lxc/lxc_start.c b/src/lxc/lxc_start.c
index 5e4565c..d006ba1 100644
--- a/src/lxc/lxc_start.c
+++ b/src/lxc/lxc_start.c
@@ -346,6 +346,8 @@ int main(int argc, char *argv[])
 
 out:
 	lxc_container_put(c);
+	if (pid_fp)
+		fclose(pid_fp);
 	return err;
 }
 
-- 
1.8.3.2





More information about the lxc-devel mailing list