[lxc-devel] [PATCH] lxc_monitor: free @preg on error

Arjun Sreedharan arjun024 at gmail.com
Sun Jul 12 12:46:17 UTC 2015


reuse label cleanup since free(NULL) is a no-op
Signed-off-by: Arjun Sreedharan <arjun024 at gmail.com>
---
 src/lxc/lxc_monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxc_monitor.c b/src/lxc/lxc_monitor.c
index 3f96702..ac34b0e 100644
--- a/src/lxc/lxc_monitor.c
+++ b/src/lxc/lxc_monitor.c
@@ -150,7 +150,7 @@ int main(int argc, char *argv[])
 	if (!fds) {
 		SYSERROR("out of memory");
 		rc_main = -1;
-		goto error;
+		goto cleanup;
 	}
 
 	nfds = my_args.lxcpath_cnt;
-- 
2.4.5



More information about the lxc-devel mailing list