From dd5854678cfe7bab499925175b5b40314d71fede Mon Sep 17 00:00:00 2001 From: yzrh Date: Fri, 6 Jan 2023 12:00:01 +0000 Subject: Fix JBIG2 allocation. Signed-off-by: yzrh --- src/jbig2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/jbig2.c') diff --git a/src/jbig2.c b/src/jbig2.c index 9b3a9be..ea9233c 100644 --- a/src/jbig2.c +++ b/src/jbig2.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, yzrh + * Copyright (c) 2022-2023, yzrh * * SPDX-License-Identifier: Apache-2.0 */ @@ -31,5 +31,6 @@ strdec_jbig2(char **bitmap, } jbig2_release_page(ctx, image); + jbig2_ctx_free(ctx); return 0; } -- cgit v1.2.3