]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc_monitor: free @preg on error
authorArjun Sreedharan <arjun024@gmail.com>
Sun, 12 Jul 2015 12:46:17 +0000 (18:16 +0530)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 13 Aug 2015 20:33:33 +0000 (16:33 -0400)
reuse label cleanup since free(NULL) is a no-op
Signed-off-by: Arjun Sreedharan <arjun024@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc_monitor.c

index 3f967028f17280817fefdba7814f7ed86387889b..ac34b0e5fc13b29d1473b2779f40336d09ec42b7 100644 (file)
@@ -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;