Skip to content

Commit 7ba70a5

Browse files
committed
Fix potential memory leak in the enchant extension
1 parent d3ae4fe commit 7ba70a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/enchant/enchant.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ PHP_FUNCTION(enchant_dict_quick_check)
719719
}
720720

721721
if (sugg) {
722-
zval_dtor(sugg);
722+
zval_ptr_dtor(sugg);
723723
array_init(sugg);
724724
}
725725

0 commit comments

Comments
 (0)