Commit 03aeaccb authored by Radoslaw Pajak's avatar Radoslaw Pajak Committed by Simon McVittie

fixed memory freeing if error during listing services

Signed-off-by: default avatarRadoslaw Pajak <r.pajak@samsung.com>
Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71526
parent c9ebd602
......@@ -2179,7 +2179,7 @@ bus_activation_list_services (BusActivation *activation,
error:
for (j = 0; j < i; j++)
dbus_free (retval[i]);
dbus_free (retval[j]);
dbus_free (retval);
return FALSE;
......
......@@ -368,7 +368,7 @@ bus_registry_list_services (BusRegistry *registry,
error:
for (j = 0; j < i; j++)
dbus_free (retval[i]);
dbus_free (retval[j]);
dbus_free (retval);
return FALSE;
......
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