From 2e81e13842a26e0e94fffd8a8fb41e64c65c501c Mon Sep 17 00:00:00 2001 From: Wouter Coekaerts Date: Sun, 6 Mar 2005 18:42:10 +0000 Subject: [PATCH] Fix command_unbind memleak by Toby Peterson (Bug 211) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3713 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/commands.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/commands.c b/src/core/commands.c index c2882925..17b825b5 100644 --- a/src/core/commands.c +++ b/src/core/commands.c @@ -89,6 +89,7 @@ command_module_find_and_remove(COMMAND_REC *rec, SIGNAL_FUNC func) if (cb->func == func) { rec->callbacks = g_slist_remove(rec->callbacks, cb); + g_free(cb); return rec; } }