summaryrefslogtreecommitdiff
path: root/ext/xslt/php_sablot.h
diff options
context:
space:
mode:
authorRui Hirokawa <hirokawa@php.net>2001-06-10 09:41:43 +0000
committerRui Hirokawa <hirokawa@php.net>2001-06-10 09:41:43 +0000
commitfd46c91466ad8bd41f300a5afa68c422cac4e290 (patch)
tree68572e99cc3343bb9e8e29b9bc6d88eea52cc074 /ext/xslt/php_sablot.h
parent22e506727c2581fef34b9914256067daf19cc7ca (diff)
downloadphp-git-fd46c91466ad8bd41f300a5afa68c422cac4e290.tar.gz
modified code freeing resouce which causes segmentation fault.
Diffstat (limited to 'ext/xslt/php_sablot.h')
-rw-r--r--ext/xslt/php_sablot.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/xslt/php_sablot.h b/ext/xslt/php_sablot.h
index 1c63c68154..f494fba848 100644
--- a/ext/xslt/php_sablot.h
+++ b/ext/xslt/php_sablot.h
@@ -46,6 +46,8 @@ extern zend_module_entry xslt_module_entry;
#define XSLT_ERRSTR(handle) ((handle)->err->str)
#define XSLT_LOG(handle) ((handle)->err->log)
+#define XSLT_FUNCH_FREE(__var) if (__var) zval_ptr_dtor(&(__var));
+
PHP_MINIT_FUNCTION(xslt);
PHP_MINFO_FUNCTION(xslt);