]> git.sur5r.net Git - openldap/commitdiff
Fix memory leak in previous commit
authorHoward Chu <hyc@openldap.org>
Thu, 18 Apr 2002 15:55:05 +0000 (15:55 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 18 Apr 2002 15:55:05 +0000 (15:55 +0000)
servers/slapd/connection.c

index 5cb8f524aacffcac6b50c8e7b3ae5ea78c938995..50fba1a2203aa1166305a820401749fd2616c853 100644 (file)
@@ -1203,6 +1203,7 @@ int connection_read(ber_socket_t s)
 
                        authid = dnX509peerNormalize( ssl );
                        slap_sasl_external( c, c->c_tls_ssf, authid );
+                       if ( authid )   free( authid );
                }
                connection_return( c );
                ldap_pvt_thread_mutex_unlock( &connections_mutex );