diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2012-05-14 04:11:32 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-14 11:25:31 -0400 |
commit | 6270c10037cd0b5ea59567aaf423dcb1205e5683 (patch) | |
tree | daa1f299dfa1ee87b9ae87481dbdd06851c721f6 /src/providers/ldap/sdap.c | |
parent | 65cbece2e1c536b93ad5e7cbea9f20ae3fdf7a08 (diff) | |
download | sssd-6270c10037cd0b5ea59567aaf423dcb1205e5683.tar.gz sssd-6270c10037cd0b5ea59567aaf423dcb1205e5683.tar.xz sssd-6270c10037cd0b5ea59567aaf423dcb1205e5683.zip |
Fixed two minor memory leaks
Diffstat (limited to 'src/providers/ldap/sdap.c')
-rw-r--r-- | src/providers/ldap/sdap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index 1bb513ae6..01ba418a6 100644 --- a/src/providers/ldap/sdap.c +++ b/src/providers/ldap/sdap.c @@ -123,7 +123,10 @@ int sdap_parse_entry(TALLOC_CTX *memctx, } attrs = sysdb_new_attrs(tmp_ctx); - if (!attrs) return ENOMEM; + if (!attrs) { + ret = ENOMEM; + goto done; + } str = ldap_get_dn(sh->ldap, sm->msg); if (!str) { |