Commit 43f5b503 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix memory ownership

parent 71dfd57e
......@@ -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 );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment