From: Paul J. Reder Date: Fri, 30 Nov 2007 00:21:06 +0000 (+0000) Subject: Clear the reason pointer when the connection is cleaned. We don't X-Git-Tag: 2.3.0~1196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b22b6fbd2b9baccfbfd9a0c6460c144fc6d70481;p=apache Clear the reason pointer when the connection is cleaned. We don't need to be leaving historical info around. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@599657 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index 74d746d027..c16aba33c0 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -198,7 +198,10 @@ static apr_status_t uldap_connection_cleanup(void *param) if (ldc->binddn) { free((void*)ldc->binddn); } - + /* ldc->reason is allocated from r->pool */ + if (ldc->reason) { + ldc->reason = NULL; + } /* unlock this entry */ uldap_connection_close(ldc);