r19526: Fix minor memleak.
authorGünther Deschner <gd@samba.org>
Wed, 1 Nov 2006 11:04:28 +0000 (11:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:40 +0000 (12:15 -0500)
Guenther
(This used to be commit 61ebedc82ee7d7a98e2a52b0677d723a801ab30f)

source3/libads/ldap.c

index 2b36d5575ea4c62d96785f0eed479e50c8f0fc33..6fbae51179fcd113a7966b9871915b6876e22ad4 100644 (file)
@@ -1232,6 +1232,7 @@ ADS_STATUS ads_del_dn(ADS_STRUCT *ads, char *del_dn)
        }
        
        ret = ldap_delete_s(ads->ld, utf8_dn);
+       SAFE_FREE(utf8_dn);
        return ADS_ERROR(ret);
 }