]> mj.ucw.cz Git - libucw.git/commitdiff
Main: Remember to free the poll table
authorMartin Mares <mj@ucw.cz>
Wed, 28 Jul 2010 20:26:38 +0000 (22:26 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 18 Aug 2010 16:12:57 +0000 (18:12 +0200)
ucw/mainloop.c

index 90ee874d6ab737df1301b302ba472a9435cadb75..2b2618707915fc9502bb5e5f6356703704b17bcb 100644 (file)
@@ -75,8 +75,9 @@ main_delete(struct main_context *m)
   ASSERT(clist_empty(&m->process_list));
   if (m->timer_table)
     GARY_FREE(m->timer_table);
-  // FIXME: Free poll table
+  xfree(m->poll_table);
   xfree(m);
+  // FIXME: Some mechanism for cleaning up after fork()
 }
 
 struct main_context *