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-Tag: talloc-2.0.0~900 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae5e1d984109d0b0d8356416d74b51c4f5311d2a;p=thirdparty%2Fsamba.git 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 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; }