fix memory ownership

This commit is contained in:
Pierangelo Masarati 2003-12-27 17:52:07 +00:00
parent 71dfd57e75
commit 43f5b50319

View File

@ -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 );
}