diff options
| -rw-r--r-- | NEWS | 3 | ||||
| -rw-r--r-- | ext/gmp/gmp.c | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -26,6 +26,9 @@ PHP NEWS . Fixed bug #63983 (enabling FPM borks compile on FreeBSD). (chibisuke at web dot de, Felipe) +- GMP: + . Fixed bug #65227 (Memory leak in gmp_cmp second parameter). (Felipe) + - Imap: . Fixed bug #64467 (Segmentation fault after imap_reopen failure). (askalski at gmail dot com) diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index c9da09b230..f8c3a0773b 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -1333,6 +1333,7 @@ ZEND_FUNCTION(gmp_cmp) res = mpz_cmp_si(*gmpnum_a, Z_LVAL_PP(b_arg)); } else { res = mpz_cmp(*gmpnum_a, *gmpnum_b); + FREE_GMP_TEMP(temp_b); } FREE_GMP_TEMP(temp_a); |
