diff options
| -rw-r--r-- | ext/sablot/sablot.c | 9 |
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; } |
