[libsecret/nielsdg/fix-search-for-dbus-path-finish-leak: 4/4] secret-paths: Fix a little memory leak
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret/nielsdg/fix-search-for-dbus-path-finish-leak: 4/4] secret-paths: Fix a little memory leak
- Date: Sat, 24 Sep 2022 07:24:22 +0000 (UTC)
commit ca80e1641cac08b4e17be0254869b3869bd09755
Author: Niels De Graef <nielsdegraef gmail com>
Date: Fri May 27 11:56:49 2022 +0200
secret-paths: Fix a little memory leak
After extracting the string list from the GVariant in
`secret_collection_search_for_dbus_paths_finish`, we didn't release
the GVariant itself.
libsecret/secret-paths.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/libsecret/secret-paths.c b/libsecret/secret-paths.c
index 8081819..993d6cb 100644
--- a/libsecret/secret-paths.c
+++ b/libsecret/secret-paths.c
@@ -396,6 +396,7 @@ secret_collection_search_for_dbus_paths_finish (SecretCollection *collection,
}
g_variant_get (retval, "(^ao)", &paths);
+ g_clear_pointer (&retval, g_variant_unref);
return g_steal_pointer (&paths);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]