From: Volker Lendecke Date: Sun, 28 Jun 2009 11:03:14 +0000 (+0200) Subject: tldap_msg_received: Properly free the asn1_struct in case of an error X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=ae5e1d984109d0b0d8356416d74b51c4f5311d2a tldap_msg_received: Properly free the asn1_struct in case of an error --- 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; }