Browse Source

Fixed a memory leak.

PEAR_1_4DEV
Ilia Alshanetsky 23 years ago
parent
commit
baced1d63d
  1. 4
      main/streams/streams.c

4
main/streams/streams.c

@ -1692,9 +1692,9 @@ PHPAPI int php_stream_context_set_option(php_stream_context *context,
ALLOC_INIT_ZVAL(copied_val);
*copied_val = *optionvalue;
zval_copy_ctor(copied_val);
INIT_PZVAL(copied_val);
if (FAILURE == zend_hash_find(Z_ARRVAL_P(context->options), (char*)wrappername, strlen(wrappername)+1, (void**)&wrapperhash)) {
MAKE_STD_ZVAL(category);
array_init(category);
if (FAILURE == zend_hash_update(Z_ARRVAL_P(context->options), (char*)wrappername, strlen(wrappername)+1, (void**)&category, sizeof(zval *), NULL)) {

Loading…
Cancel
Save