From 6270c10037cd0b5ea59567aaf423dcb1205e5683 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Mon, 14 May 2012 04:11:32 -0400 Subject: Fixed two minor memory leaks --- src/providers/ldap/sdap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/providers/ldap/sdap.c') diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index 1bb513ae..01ba418a 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) { -- cgit