You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by re...@apache.org on 2007/11/30 01:21:07 UTC

svn commit: r599657 - /httpd/httpd/trunk/modules/ldap/util_ldap.c

Author: rederpj
Date: Thu Nov 29 16:21:06 2007
New Revision: 599657

URL: http://svn.apache.org/viewvc?rev=599657&view=rev
Log:
Clear the reason pointer when the connection is cleaned. We don't
need to be leaving historical info around.

Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap.c?rev=599657&r1=599656&r2=599657&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap.c Thu Nov 29 16:21:06 2007
@@ -198,7 +198,10 @@
         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);