diff options
author | Günther Deschner <gd@samba.org> | 2006-09-19 02:04:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:00:46 -0500 |
commit | 4fa5a1c8453379e1b1bd39dea14b7e736b9ae41f (patch) | |
tree | ee81eb9b5395155917a895a82d6619340e0f469b /source3/libads | |
parent | 3fe99c960f7c99e421d000f3c29114b94c182ca8 (diff) | |
download | samba-4fa5a1c8453379e1b1bd39dea14b7e736b9ae41f.tar.gz samba-4fa5a1c8453379e1b1bd39dea14b7e736b9ae41f.tar.bz2 samba-4fa5a1c8453379e1b1bd39dea14b7e736b9ae41f.zip |
r18670: Fix memleaks.
Guenther
(This used to be commit 2fc63fb8f7927ea61c565801b4c6308d3a4afcd1)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ldap_schema.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libads/ldap_schema.c b/source3/libads/ldap_schema.c index da8b168c21..b4a512cbfe 100644 --- a/source3/libads/ldap_schema.c +++ b/source3/libads/ldap_schema.c @@ -165,10 +165,12 @@ static ADS_STATUS ads_schema_path(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, char **s } if ( (schema = ads_pull_string(ads, mem_ctx, res, "schemaNamingContext")) == NULL ) { + ads_msgfree(ads, res); return ADS_ERROR(LDAP_NO_RESULTS_RETURNED); } if ( (*schema_path = talloc_strdup(mem_ctx, schema)) == NULL ) { + ads_msgfree(ads, res); return ADS_ERROR(LDAP_NO_MEMORY); } |