From ae5e1d984109d0b0d8356416d74b51c4f5311d2a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 28 Jun 2009 13:03:14 +0200 Subject: [PATCH] tldap_msg_received: Properly free the asn1_struct in case of an error --- source3/lib/tldap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c index aba8a25fbff0..cbd964800702 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; } -- 2.34.1