diff options
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pamtotga.c | 3 | ||||
-rw-r--r-- | converter/other/pamtouil.c | 2 | ||||
-rw-r--r-- | converter/other/pnmtopclxl.c | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/converter/other/pamtotga.c b/converter/other/pamtotga.c index 1e0808ed..6c8769ed 100644 --- a/converter/other/pamtotga.c +++ b/converter/other/pamtotga.c @@ -461,7 +461,8 @@ computeTgaHeader(struct pam * const pamP, static void releaseTgaHeader(struct ImageHeader const tgaHeader) { - strfree(tgaHeader.Id); + if (tgaHeader.IdLength > 0) + strfree(tgaHeader.Id); } diff --git a/converter/other/pamtouil.c b/converter/other/pamtouil.c index b9ddc749..f17fd94b 100644 --- a/converter/other/pamtouil.c +++ b/converter/other/pamtouil.c @@ -380,7 +380,7 @@ freeCmap(cixel_map cmap[], unsigned int const ncolors) { if (cmapEntry.uilname) freeString(cmapEntry.uilname); if (cmapEntry.rgbname) - freeString(cmapEntry.uilname); + freeString(cmapEntry.rgbname); } } diff --git a/converter/other/pnmtopclxl.c b/converter/other/pnmtopclxl.c index fe4833d8..7c85d09c 100644 --- a/converter/other/pnmtopclxl.c +++ b/converter/other/pnmtopclxl.c @@ -176,6 +176,7 @@ parseCommandLine(int argc, char ** argv, if (argc-1 < 1) { MALLOCVAR(cmdlineP->sourceP); cmdlineP->sourceP->name = "-"; + cmdlineP->sourceP->next = NULL; } else { int i; InputSource ** nextLinkP; |