From: Sara Golemon Date: Fri, 27 Jun 2003 04:27:18 +0000 (+0000) Subject: MFB PHP_4_3 main/streams.c r-1.125.2.70 X-Git-Tag: php-5.0.0b1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac795777769d574d64bcf65312b1cf790d8297b3;p=php MFB PHP_4_3 main/streams.c r-1.125.2.70 --- diff --git a/main/streams/streams.c b/main/streams/streams.c index 15483d9d64..aef11d708c 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1622,6 +1622,10 @@ PHPAPI void php_stream_context_free(php_stream_context *context) zval_ptr_dtor(&context->options); context->options = NULL; } + if (context->notifier) { + php_stream_notification_free(context->notifier); + context->notifier = NULL; + } efree(context); } @@ -1630,6 +1634,7 @@ PHPAPI php_stream_context *php_stream_context_alloc(void) php_stream_context *context; context = ecalloc(1, sizeof(php_stream_context)); + context->notifier = NULL; MAKE_STD_ZVAL(context->options); array_init(context->options);