[tracker/wip/carlosg/coverity-warnings: 3/5] portal: "Plug" leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/coverity-warnings: 3/5] portal: "Plug" leak
- Date: Sun, 21 Mar 2021 21:21:43 +0000 (UTC)
commit 781d6e72f9c3ce486032c0d9fd7fb6b497258074
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Mar 20 13:28:26 2021 +0100
portal: "Plug" leak
Coverity complains here, even though there's no paths that inner_error
is set but not used. Mark it as autoptr, so it's more consistent and
makes Coverity shut up here.
CID: #1501149
src/portal/tracker-portal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/portal/tracker-portal.c b/src/portal/tracker-portal.c
index 3b041603f..1fdb48087 100644
--- a/src/portal/tracker-portal.c
+++ b/src/portal/tracker-portal.c
@@ -213,7 +213,7 @@ load_client_configuration (TrackerPortal *portal,
GError **error)
{
g_autoptr (GKeyFile) flatpak_info = NULL;
- GError *inner_error = NULL;
+ g_autoptr(GError) inner_error = NULL;
GStrv graphs;
if (portal->test_flatpak_info) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]