summaryrefslogtreecommitdiff
path: root/source3/libads/ldap.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-05 06:26:56 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-05 06:26:56 +0000
commit5f76385e709204151fb9c743ae9d36e0b3df48de (patch)
tree894f06129f78795d2aa9bb1ddf5c0915e9943b55 /source3/libads/ldap.c
parentfaa0f63774e6b121eb61ffb009f60087894b5399 (diff)
downloadsamba-5f76385e709204151fb9c743ae9d36e0b3df48de.tar.gz
samba-5f76385e709204151fb9c743ae9d36e0b3df48de.tar.bz2
samba-5f76385e709204151fb9c743ae9d36e0b3df48de.zip
more memory leak fixes
(This used to be commit eb6f0e91ddd2a97a907a569bc60beca99b494884)
Diffstat (limited to 'source3/libads/ldap.c')
-rw-r--r--source3/libads/ldap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 34ca2ad04d..251a4a6958 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -100,6 +100,14 @@ int ads_search_dn(ADS_STRUCT *ads, void **res,
LDAP_SCOPE_BASE, "(objectclass=*)", (char **)attrs, 0, (LDAPMessage **)res);
}
+/*
+ free up memory from a ads_search
+*/
+void ads_msgfree(ADS_STRUCT *ads, void *msg)
+{
+ if (!msg) return;
+ ldap_msgfree(msg);
+}
/*
find a machine account given a hostname