Skip to content

Commit

Permalink
lxc_monitor: free @Preg on error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
arjun024 authored and stgraber committed Aug 13, 2015
1 parent 0f3022c commit 0ae5b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/lxc_monitor.c
Expand Up @@ -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;
Expand Down

0 comments on commit 0ae5b85

Please sign in to comment.