summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2011-12-19 15:13:11 +0000
committerVivek Dasmohapatra <vivek@collabora.co.uk>2011-12-19 15:13:11 +0000
commit2b1944ad4085bc10a324dcea19ba19c901bbe578 (patch)
treeddae5a97f6ab5db8655ce3d32ff224546ff953ea
parentbcdbbe60367d67a602aed52a95e53e0725881e2d (diff)
In the [unlikely] event the id key has the wrong type, don't leak the GValue
-rw-r--r--src/mcd-account-manager-sso.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mcd-account-manager-sso.c b/src/mcd-account-manager-sso.c
index 7f57b72c..0cf4e41e 100644
--- a/src/mcd-account-manager-sso.c
+++ b/src/mcd-account-manager-sso.c
@@ -980,6 +980,10 @@ _ag_accountid_to_mc_key (McdAccountManagerSso *sso,
DEBUG (MC_IDENTITY_KEY " value %p:%s synthesised", name, name);
return name;
}
+ else
+ {
+ g_value_unset (&value);
+ }
DEBUG (MC_IDENTITY_KEY " not synthesised, returning NULL");
return NULL;