diff options
Diffstat (limited to 'ipc.c')
| -rw-r--r-- | ipc.c | 8 | 
1 files changed, 8 insertions, 0 deletions
@@ -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  	{  | 
