]> granicus.if.org Git - php/commitdiff
Fix potential memory leak in the enchant extension
authorThomas Punt <tpunt@php.net>
Sun, 29 Apr 2018 18:23:07 +0000 (19:23 +0100)
committerThomas Punt <tpunt@php.net>
Sun, 29 Apr 2018 18:23:07 +0000 (19:23 +0100)
ext/enchant/enchant.c

index cdf5eb1fec22ded06277a68d085a10637d2e5ef2..24343b1598c9d96caf2ee8ea0fc956004fdcd69c 100644 (file)
@@ -719,7 +719,7 @@ PHP_FUNCTION(enchant_dict_quick_check)
        }
 
        if (sugg) {
-               zval_dtor(sugg);
+               zval_ptr_dtor(sugg);
                array_init(sugg);
        }