elm_atspi_bridge: unref eldbus msg before returning to avoid memory leak

If we goto fail here we still have the ret eldbus message referenced. Make
sure we unref so it can be free'd and we do not leak memory.

CID: 1353603
This commit is contained in:
Stefan Schmidt 2016-04-18 13:36:17 +02:00
parent 39eb3004f8
commit 6b7172d6e3
1 changed files with 1 additions and 0 deletions

View File

@ -828,6 +828,7 @@ _accessible_get_relation_set(const Eldbus_Service_Interface *iface EINA_UNUSED,
return ret;
fail:
eldbus_message_unref(ret);
return eldbus_message_error_new(msg, "org.freedesktop.DBus.Error.Failed", "Unable to get relation set.");
}