]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Fri, 24 Oct 2003 06:01:55 +0000 (06:01 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 24 Oct 2003 06:01:55 +0000 (06:01 +0000)
servers/slapd/connection.c

index 35543fab4081839ad643a688d40fc2fd23ef6408..707971b3891a624b541abd3a5e6defd3ffcdde20 100644 (file)
@@ -142,7 +142,9 @@ int connections_destroy(void)
                        ldap_pvt_thread_mutex_destroy( &connections[i].c_write_mutex );
                        ldap_pvt_thread_cond_destroy( &connections[i].c_write_cv );
 #ifdef LDAP_SLAPI
-                       slapi_x_free_object_extensions( SLAPI_X_EXT_CONNECTION, &connections[i] );
+                       if ( slapi_plugins_used ) {
+                               slapi_x_free_object_extensions( SLAPI_X_EXT_CONNECTION, &connections[i] );
+                       }
 #endif
                }
        }