[tracker/wip/carlosg/plug-leaks: 4/5] libtracker-sparql: Plug leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/plug-leaks: 4/5] libtracker-sparql: Plug leak
- Date: Sat, 26 Dec 2020 20:14:53 +0000 (UTC)
commit ef3cfb329d7cbf9b66375fc699b9841cbb9ad4a4
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Dec 20 21:07:42 2020 +0100
libtracker-sparql: Plug leak
The error should be freed here, the function above does not take
ownership.
src/libtracker-sparql/tracker-endpoint-dbus.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/libtracker-sparql/tracker-endpoint-dbus.c b/src/libtracker-sparql/tracker-endpoint-dbus.c
index 2418aa03a..b8bf3c604 100644
--- a/src/libtracker-sparql/tracker-endpoint-dbus.c
+++ b/src/libtracker-sparql/tracker-endpoint-dbus.c
@@ -446,6 +446,7 @@ update_cb (GObject *object,
res, &error);
if (error) {
g_dbus_method_invocation_return_gerror (request->invocation, error);
+ g_error_free (error);
} else {
g_dbus_method_invocation_return_value (request->invocation, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]