summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-04-19 14:59:33 +0000
committerSterling Hughes <sterling@php.net>2001-04-19 14:59:33 +0000
commit06e6363985497b2d9407ff199eb5ccf6aacc17e9 (patch)
treeb56ee6a72863bb889835f7f7539132bf8d1885b9
parentd52f75aa1ca8638a904499df0519f1b55c4006f9 (diff)
downloadphp-git-06e6363985497b2d9407ff199eb5ccf6aacc17e9.tar.gz
fix crash bug 10400.
-rw-r--r--ext/sablot/sablot.c9
1 files changed, 5 insertions, 4 deletions
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;
}