]> git.sur5r.net Git - openldap/commitdiff
Fixed crashed in slapi_value_free
authorLuke Howard <lukeh@openldap.org>
Tue, 21 Jan 2003 15:44:04 +0000 (15:44 +0000)
committerLuke Howard <lukeh@openldap.org>
Tue, 21 Jan 2003 15:44:04 +0000 (15:44 +0000)
servers/slapd/slapi/slapi_utils.c

index a59f5e1d9b27d98513434e90760258cbee7f19b0..4887da032b3255fe0b4d69e4eae0813745587db6 100644 (file)
@@ -1747,11 +1747,10 @@ void slapi_value_free(Slapi_Value **value)
        if ( value == NULL ) {
                return;
        }
-       if ( *value != NULL ) {
-               Slapi_Value *v;
 
-               slapi_ch_free( (void **)&v->bv_val );
-               slapi_ch_free( (void **)&v );
+       if ( (*value) != NULL ) {
+               slapi_ch_free( (void **)&(*value)->bv_val );
+               slapi_ch_free( (void **)value );
        }
 #endif
 }