]> granicus.if.org Git - php/commitdiff
MFB PHP_4_3 main/streams.c r-1.125.2.70
authorSara Golemon <pollita@php.net>
Fri, 27 Jun 2003 04:27:18 +0000 (04:27 +0000)
committerSara Golemon <pollita@php.net>
Fri, 27 Jun 2003 04:27:18 +0000 (04:27 +0000)
main/streams/streams.c

index 15483d9d64c8281c34414cf84a384a19bed148fc..aef11d708c764a8a3a438ed76162a0e87f3e9287 100755 (executable)
@@ -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);