From: Martin Mares Date: Fri, 25 Feb 2011 23:26:22 +0000 (+0100) Subject: Main: Plugged memory leaks of internal structures X-Git-Tag: v5.0~129^2~13 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=01952d21dc7195336fe03d6b12a73d563924cfe9;p=libucw.git Main: Plugged memory leaks of internal structures --- diff --git a/ucw/mainloop.c b/ucw/mainloop.c index 6575210b..57fd4ff9 100644 --- a/ucw/mainloop.c +++ b/ucw/mainloop.c @@ -86,9 +86,15 @@ main_delete(struct main_context *m) struct main_context *prev = main_switch_context(m); if (m->sigchld_handler) - signal_del(m->sigchld_handler); + { + signal_del(m->sigchld_handler); + xfree(m->sigchld_handler); + } if (m->sig_pipe_file) - file_del(m->sig_pipe_file); + { + file_del(m->sig_pipe_file); + xfree(m->sig_pipe_file); + } if (m->sig_pipe_recv >= 0) { close(m->sig_pipe_recv);