[lxc-devel] [PATCH] lxc_monitor: free @preg on error
Serge Hallyn
serge.hallyn at ubuntu.com
Mon Jul 20 16:20:07 UTC 2015
Quoting Arjun Sreedharan (arjun024 at gmail.com):
> reuse label cleanup since free(NULL) is a no-op
> Signed-off-by: Arjun Sreedharan <arjun024 at gmail.com>
Thanks, Arjun.
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.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