From 01952d21dc7195336fe03d6b12a73d563924cfe9 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 26 Feb 2011 00:26:22 +0100 Subject: [PATCH] Main: Plugged memory leaks of internal structures --- ucw/mainloop.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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); -- 2.39.5