From: Sterling Hughes Date: Thu, 19 Apr 2001 14:59:33 +0000 (+0000) Subject: fix crash bug 10400. X-Git-Tag: php-4.0.6RC1~366 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06e6363985497b2d9407ff199eb5ccf6aacc17e9;p=php fix crash bug 10400. --- diff --git a/ext/sablot/sablot.c b/ext/sablot/sablot.c index 4544ebc163..aefc0c82fb 100644 --- a/ext/sablot/sablot.c +++ b/ext/sablot/sablot.c @@ -70,7 +70,7 @@ static zval *_php_sablot_resource_zval(long); /* Macro's */ /* Free macros */ -#define S_FREE(__var) if (__var) efree(__var); +#define S_FREE(__var) if (__var) { efree(__var); __var = NULL; } #define FUNCH_FREE(__var) if (__var) zval_ptr_dtor(&(__var)); /* ERROR Macros */ @@ -208,9 +208,10 @@ ZEND_GET_MODULE(sablot) static void php_sablot_init_globals(SABLOTLS_D) { - SABLOTG(processor) = NULL; - SABLOTG(errors) = NULL; - SABLOTG(errorHandler) = NULL; + SABLOTG(processor) = NULL; + SABLOTG(errors) = NULL; + SABLOTG(errorHandler) = NULL; + SABLOTG(output_transform_file) = NULL; }