mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
fix memory ownership
This commit is contained in:
parent
71dfd57e75
commit
43f5b50319
@ -162,7 +162,7 @@ rewrite_var_set(
|
||||
assert( var->lv_value.bv_val != NULL );
|
||||
|
||||
free( var->lv_value.bv_val );
|
||||
var->lv_value.bv_val = ( char * )value;
|
||||
var->lv_value.bv_val = strdup( value );
|
||||
var->lv_value.bv_len = strlen( value );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user