summaryrefslogtreecommitdiff
path: root/ext/bcmath/libbcmath
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-21 12:17:42 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-21 12:56:28 +0200
commitf781c8f1100ebefec800889171f4c8d0cf3c6637 (patch)
tree005640b55ddb5919c38659e546f8f75090197ca6 /ext/bcmath/libbcmath
parente7ef2b52db67da9794527d9ffa882f2e4e1dcd22 (diff)
downloadphp-git-f781c8f1100ebefec800889171f4c8d0cf3c6637.tar.gz
Fix leak in bcpowmod
Diffstat (limited to 'ext/bcmath/libbcmath')
-rw-r--r--ext/bcmath/libbcmath/src/raisemod.c1
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