aboutsummaryrefslogtreecommitdiffstats
path: root/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc.c')
-rw-r--r--ipc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipc.c b/ipc.c
index 06618695..f853a18f 100644
--- a/ipc.c
+++ b/ipc.c
@@ -247,7 +247,11 @@ gboolean ipc_master_read( gpointer data, gint source, b_input_condition cond )
{
cmd = irc_parse_line( buf );
if( cmd )
+ {
ipc_command_exec( data, cmd, ipc_master_commands );
+ g_free( cmd );
+ }
+ g_free( buf );
}
else
{
@@ -265,7 +269,11 @@ gboolean ipc_child_read( gpointer data, gint source, b_input_condition cond )
{
cmd = irc_parse_line( buf );
if( cmd )
+ {
ipc_command_exec( data, cmd, ipc_child_commands );
+ g_free( cmd );
+ }
+ g_free( buf );
}
else
{