[tracker/wip/carlosg/leak-fixes: 2/4] libtracker-data: Plug GError leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/leak-fixes: 2/4] libtracker-data: Plug GError leak
- Date: Sat, 6 Jun 2020 13:21:40 +0000 (UTC)
commit c361fdfcfd21a8a637fc88f30b499c21e9370987
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jun 3 12:09:21 2020 +0200
libtracker-data: Plug GError leak
If we do get a G_IO_ERROR_NOT_FOUND error, the error is leaked.
src/libtracker-data/tracker-db-manager.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 5f3e1ccd2..0b22527ed 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -1103,6 +1103,8 @@ tracker_db_manager_attach_database (TrackerDBManager *db_manager,
g_propagate_error (error, inner_error);
return FALSE;
}
+
+ g_clear_error (&inner_error);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]