Fixed memory leak.

# Found by valgrind w/o zend-mm being used.
This commit is contained in:
Ilia Alshanetsky 2005-06-21 14:05:15 +00:00
parent 8460074372
commit e656b82956
2 changed files with 6 additions and 0 deletions

View file

@ -583,6 +583,9 @@ static void _parameter_string(string *str, zend_function *fptr, struct _zend_arg
} else {
zend_make_printable_zval(zv, &zv_copy, &use_copy);
string_write(str, Z_STRVAL(zv_copy), Z_STRLEN(zv_copy));
if (use_copy) {
zval_dtor(&zv_copy);
}
}
zval_ptr_dtor(&zv);
}