Use cleanup() in child.c

This commit is contained in:
Axel Wagner 2011-07-10 04:34:18 +02:00
parent 97827372af
commit 3d05fe7a52
1 changed files with 1 additions and 3 deletions

View File

@ -45,7 +45,6 @@ void cleanup() {
if (child_sig != NULL) { if (child_sig != NULL) {
ev_child_stop(main_loop, child_sig); ev_child_stop(main_loop, child_sig);
FREE(child_sig); FREE(child_sig);
FREE(statusline_buffer);
} }
} }
@ -80,8 +79,7 @@ void stdin_io_cb(struct ev_loop *loop, ev_io *watcher, int revents) {
/* end of file, kill the watcher */ /* end of file, kill the watcher */
DLOG("stdin: EOF\n"); DLOG("stdin: EOF\n");
ev_io_stop(loop, watcher); cleanup();
FREE(stdin_io);
break; break;
} }
rec += n; rec += n;