From: Arjun Sreedharan Date: Sun, 12 Jul 2015 12:46:17 +0000 (+0530) Subject: lxc_monitor: free @preg on error X-Git-Tag: lxc-2.0.0.beta1~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17706a46284ee84bcdc3d145444e8b2a800cad3c;p=thirdparty%2Flxc.git 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 --- 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;