about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/pamtoxvmini.c2
-rw-r--r--doc/HISTORY2
2 files changed, 3 insertions, 1 deletions
diff --git a/converter/other/pamtoxvmini.c b/converter/other/pamtoxvmini.c
index dc56e912..449b3c99 100644
--- a/converter/other/pamtoxvmini.c
+++ b/converter/other/pamtoxvmini.c
@@ -212,7 +212,7 @@ writeXvRaster(struct pam * const pamP,
     }
 
     pm_freerow((char*)xvrow);
-    pnm_freepamrow(pamP);
+    pnm_freepamrow(tuplerow);
 
     pnm_destroytuplehash(paletteHash);
 }
diff --git a/doc/HISTORY b/doc/HISTORY
index 38f52ba5..66c076d6 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -6,6 +6,8 @@ CHANGE HISTORY
 
 not yet  BJH  Release 10.38.0
 
+              pamtoxvmini: fix crash.
+
               Add pamfixtrunc.
 
               pambackground: recognize mid-row background.