Commit 01fabaf9 authored by Thomas Haller's avatar Thomas Haller

settings: fix leaking variant in for_each_secret()

Fixes: df670681
parent 5ae4245b
......@@ -288,6 +288,7 @@ for_each_secret (NMConnection *self,
if (!nm_setting_get_secret_flags (setting, secret_name, &secret_flags, NULL)) {
if (!remove_non_secrets)
g_variant_builder_add (&setting_builder, "{sv}", secret_name, val);
g_variant_unref (val);
if (callback (secret_flags, callback_data))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment