[libsecret/nielsdg/fix-search-for-dbus-path-finish-leak] 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] secret-paths: Fix a little memory leak
- Date: Fri, 27 May 2022 09:58:29 +0000 (UTC)
commit 7ec752781005e9d36c8f49ccfd0e4a3f88a096b8
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]