Commit 5cc6eadc authored by Rémi Duraffort's avatar Rémi Duraffort

dbus: fix memory leaks (cid #1048913)

parent daa972d9
......@@ -495,6 +495,7 @@ PropertiesChangedSignal( intf_thread_t *p_intf,
free( ppsz_properties[i] );
}
free( ppsz_properties );
if( !dbus_message_iter_close_container( &args, &changed_properties ) )
return DBUS_HANDLER_RESULT_NEED_MEMORY;
......@@ -506,8 +507,6 @@ PropertiesChangedSignal( intf_thread_t *p_intf,
if( !dbus_message_iter_close_container( &args, &invalidated_properties ) )
return DBUS_HANDLER_RESULT_NEED_MEMORY;
free( ppsz_properties );
SIGNAL_SEND;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment