Commit 0ae5b859 by Arjun Sreedharan Committed by Stéphane Graber

lxc_monitor: free @preg on error

reuse label cleanup since free(NULL) is a no-op Signed-off-by: 's avatarArjun Sreedharan <arjun024@gmail.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 0f3022c9
...@@ -150,7 +150,7 @@ int main(int argc, char *argv[]) ...@@ -150,7 +150,7 @@ int main(int argc, char *argv[])
if (!fds) { if (!fds) {
SYSERROR("out of memory"); SYSERROR("out of memory");
rc_main = -1; rc_main = -1;
goto error; goto cleanup;
} }
nfds = my_args.lxcpath_cnt; nfds = my_args.lxcpath_cnt;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment