diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-21 12:17:42 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-21 12:56:28 +0200 |
commit | f781c8f1100ebefec800889171f4c8d0cf3c6637 (patch) | |
tree | 005640b55ddb5919c38659e546f8f75090197ca6 /ext/bcmath | |
parent | e7ef2b52db67da9794527d9ffa882f2e4e1dcd22 (diff) | |
download | php-git-f781c8f1100ebefec800889171f4c8d0cf3c6637.tar.gz |
Fix leak in bcpowmod
Diffstat (limited to 'ext/bcmath')
-rw-r--r-- | ext/bcmath/libbcmath/src/raisemod.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/bcmath/libbcmath/src/raisemod.c b/ext/bcmath/libbcmath/src/raisemod.c index 034a265ef2..58f9532545 100644 --- a/ext/bcmath/libbcmath/src/raisemod.c +++ b/ext/bcmath/libbcmath/src/raisemod.c @@ -101,6 +101,7 @@ bc_raisemod (bc_num base, bc_num expo, bc_num mod, bc_num *result, int scale) rscale = MAX(scale, power->n_scale); if ( !bc_compare(modulus, BCG(_one_)) ) { + bc_free_num (&temp); temp = bc_new_num (1, scale); } else |