Commit: 281936b29535ae095350abb274acef0ae548a431 Author: Felipe Pena <felipe...@gmail.com> Fri, 12 Jul 2013 20:23:00 -0300 Parents: 0ddb3d97de1f4c7e2a2a81182aa581ac76f2a300 Branches: PHP-5.4 PHP-5.5
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=281936b29535ae095350abb274acef0ae548a431 Log: - Fixed bug #65227 (Memory leak in gmp_cmp second parameter) Bugs: https://bugs.php.net/65227 Changed paths: M NEWS M ext/gmp/gmp.c Diff: diff --git a/NEWS b/NEWS index 5507b2a..ba2922d 100644 --- a/NEWS +++ b/NEWS @@ -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 c9da09b..f8c3a07 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); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php