mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
fix memory ownership
This commit is contained in:
parent
71dfd57e75
commit
43f5b50319
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue