summaryrefslogtreecommitdiffstats
path: root/src/account/LMI_IdentityProvider.c
diff options
context:
space:
mode:
authorRoman Rakus <rrakus@redhat.com>2013-09-04 18:08:23 +0200
committerRoman Rakus <rrakus@redhat.com>2013-09-05 13:32:53 +0200
commit82c25225c1c8e817bfee0c8d0bb5ad2d1fa1faf3 (patch)
treecf68d5b12a0022c72e3e8de1ae6bb58bbcc7c380 /src/account/LMI_IdentityProvider.c
parent23c7f0b6a4dbd86b6e80ba095110742ef79e7a28 (diff)
downloadopenlmi-providers-82c25225c1c8e817bfee0c8d0bb5ad2d1fa1faf3.tar.gz
openlmi-providers-82c25225c1c8e817bfee0c8d0bb5ad2d1fa1faf3.tar.xz
openlmi-providers-82c25225c1c8e817bfee0c8d0bb5ad2d1fa1faf3.zip
Account: Fix memory leaks
Signed-off-by: Roman Rakus <rrakus@redhat.com>
Diffstat (limited to 'src/account/LMI_IdentityProvider.c')
-rw-r--r--src/account/LMI_IdentityProvider.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/account/LMI_IdentityProvider.c b/src/account/LMI_IdentityProvider.c
index 11e3de5..fe6ebb2 100644
--- a/src/account/LMI_IdentityProvider.c
+++ b/src/account/LMI_IdentityProvider.c
@@ -90,6 +90,12 @@ static CMPIStatus LMI_IdentityEnumInstances(
free(instanceid);
LMI_Identity_Set_ElementName(&li, aux_lu_get_str(lue, LU_GECOS));
KReturnInstance(cr, li);
+ lu_ent_free(lue);
+ }
+
+ if (accounts)
+ {
+ g_ptr_array_free(accounts, TRUE);
}
/* GOUPRS */