diff options
Diffstat (limited to 'ext/xml/xml.c')
-rw-r--r-- | ext/xml/xml.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 83f377140a..8b3306dd57 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -192,7 +192,9 @@ static void *php_xml_realloc_wrapper(void *ptr, size_t sz) static void php_xml_free_wrapper(void *ptr) { - efree(ptr); + if (ptr != NULL) { + efree(ptr); + } } PHP_MINIT_FUNCTION(xml) |