From 686b520ff9ae25f9fa293a92e65b9331e192d142 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 10 Jul 2016 20:18:44 +0200 Subject: [PATCH] Fix memory leak in imagemagick-types * src/image.c (Fimagemagick_types): Use AcquireExceptionInfo to avoid memory leak. --- src/image.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/image.c b/src/image.c index b07c1815eac..a85d5149e7e 100644 --- a/src/image.c +++ b/src/image.c @@ -8885,13 +8885,13 @@ and `imagemagick-types-inhibit'. */) { Lisp_Object typelist = Qnil; size_t numf = 0; - ExceptionInfo ex; + ExceptionInfo *ex; char **imtypes; size_t i; - GetExceptionInfo(&ex); - imtypes = GetMagickList ("*", &numf, &ex); - DestroyExceptionInfo(&ex); + ex = AcquireExceptionInfo (); + imtypes = GetMagickList ("*", &numf, ex); + DestroyExceptionInfo (ex); for (i = 0; i < numf; i++) { -- 2.39.2