[Gmp-commit] /var/hg/gmp: (mpn_lshift_com optimization 2): Free allocated mem...

mercurial at gmplib.org mercurial at gmplib.org
Mon Nov 21 20:04:50 UTC 2016


details:   /var/hg/gmp/rev/48669e3e2368
changeset: 17122:48669e3e2368
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Nov 21 21:04:39 2016 +0100
description:
(mpn_lshift_com optimization 2): Free allocated memory.

diffstat:

 acinclude.m4 |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 2349e1d2f62e -r 48669e3e2368 acinclude.m4
--- a/acinclude.m4	Mon Nov 21 15:30:37 2016 +0100
+++ b/acinclude.m4	Mon Nov 21 21:04:39 2016 +0100
@@ -753,6 +753,7 @@
   if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
       r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
     abort ();
+  free (r);
   return 0;
 }
 #else


More information about the gmp-commit mailing list