]> granicus.if.org Git - php/commitdiff
fix crash bug 10400.
authorSterling Hughes <sterling@php.net>
Thu, 19 Apr 2001 14:59:33 +0000 (14:59 +0000)
committerSterling Hughes <sterling@php.net>
Thu, 19 Apr 2001 14:59:33 +0000 (14:59 +0000)
ext/sablot/sablot.c

index 4544ebc163f705a72bca0256350822975ab1a7fa..aefc0c82fbf8da0c652eb8e5421d3e7dfe8e108e 100644 (file)
@@ -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;
 }