mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 20:49:35 -05:00
Fixed crashed in slapi_value_free
This commit is contained in:
parent
4fbd922a09
commit
fb22bdeb58
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue