From 17706a46284ee84bcdc3d145444e8b2a800cad3c Mon Sep 17 00:00:00 2001 From: Arjun Sreedharan Date: Sun, 12 Jul 2015 18:16:17 +0530 Subject: [PATCH] lxc_monitor: free @preg on error reuse label cleanup since free(NULL) is a no-op Signed-off-by: Arjun Sreedharan Acked-by: Serge E. Hallyn --- 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 3f967028f..ac34b0e5f 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;