From b9debec106f2ac6e15d6dff88260f133d9eafcb2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 3 Mar 2016 13:59:54 +0100 Subject: Optimised zdivmod MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zunsetup.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/zunsetup.c') diff --git a/src/zunsetup.c b/src/zunsetup.c index e2d91f6..3f3ccf6 100644 --- a/src/zunsetup.c +++ b/src/zunsetup.c @@ -5,6 +5,7 @@ void zunsetup(jmp_buf env) { + size_t i; if (libzahl_set_up) { libzahl_set_up = 0; #define X(x)\ @@ -15,5 +16,7 @@ zunsetup(jmp_buf env) zfree(x); LIST_CONSTS; #undef X + for (i = BITS_PER_CHAR; i--;) + zfree(libzahl_tmp_divmod_ds[i]); } } -- cgit v1.2.3-70-g09d2