summaryrefslogtreecommitdiff
path: root/source3/lib/tldap.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-28 13:03:14 +0200
committerVolker Lendecke <vl@samba.org>2009-06-28 15:51:02 +0200
commitae5e1d984109d0b0d8356416d74b51c4f5311d2a (patch)
tree6e649d27a4808852ee0db2b1b7f0d098399faedd /source3/lib/tldap.c
parent8e22e38c9c4a08f9f49f3f8f29dab8d6a948948e (diff)
downloadsamba-ae5e1d984109d0b0d8356416d74b51c4f5311d2a.tar.gz
tldap_msg_received: Properly free the asn1_struct in case of an error
Diffstat (limited to 'source3/lib/tldap.c')
-rw-r--r--source3/lib/tldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index aba8a25fbff..cbd96480070 100644
--- a/source3/lib/tldap.c
+++ b/source3/lib/tldap.c
@@ -585,6 +585,7 @@ static void tldap_msg_received(struct tevent_req *subreq)
/* Dump unexpected reply */
tldap_debug(ld, TLDAP_DEBUG_WARNING, "tldap_msg_received: "
"No request pending for msg %d\n", id);
+ TALLOC_FREE(data);
TALLOC_FREE(inbuf);
goto done;
}