lxc_monitor: free @preg on error

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>
This commit is contained in:
Arjun Sreedharan 2015-07-12 18:16:17 +05:30 committed by Stéphane Graber
parent 8bee885130
commit 17706a4628

View File

@ -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;