Commit 3e72dfb8 authored by Ludovic Ferrandis's avatar Ludovic Ferrandis Committed by Jens Georg
Browse files

Fix multiple memory leaks

In case of error, gupnp_service_proxy_send_action_valist returns
without freeing 1 va_list, 2 GList and 1 GHashTable.
parent ee0745fe
......@@ -588,8 +588,9 @@ gupnp_service_proxy_send_action_valist (GUPnPServiceProxy *proxy,
if (!handle) {
g_main_loop_unref (main_loop);
result = FALSE;
return FALSE;
goto out;
/* Loop till we get a reply (or time out) */
......@@ -608,6 +609,7 @@ gupnp_service_proxy_send_action_valist (GUPnPServiceProxy *proxy,
} else {
g_propagate_error (error, local_error);
va_end (var_args_copy);
g_list_free_full (in_names, g_free);
g_list_free_full (in_values, value_free);
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