about summary refs log tree commit diff
path: root/converter/other
diff options
context:
space:
mode:
Diffstat (limited to 'converter/other')
-rw-r--r--converter/other/jpegtopnm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/converter/other/jpegtopnm.c b/converter/other/jpegtopnm.c
index 8a2b6bd8..7d1750a7 100644
--- a/converter/other/jpegtopnm.c
+++ b/converter/other/jpegtopnm.c
@@ -669,8 +669,11 @@ printExifInfo(struct jpeg_marker_struct const marker,
     if (error) {
         pm_message("EXIF header is invalid.  %s", error);
         pm_strfree(error);
-    } else
+    } else {
         exif_showImageInfo(&imageInfo);
+
+        exif_terminateImageInfo(&imageInfo);
+    }
 }