summaryrefslogtreecommitdiff
path: root/contrib/dbs/tiff-palette.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dbs/tiff-palette.c')
-rw-r--r--contrib/dbs/tiff-palette.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/dbs/tiff-palette.c b/contrib/dbs/tiff-palette.c
index a8e13509..a8bbeb80 100644
--- a/contrib/dbs/tiff-palette.c
+++ b/contrib/dbs/tiff-palette.c
@@ -1,4 +1,4 @@
-/* $Id: tiff-palette.c,v 1.3 2004-09-03 08:27:20 dron Exp $ */
+/* $Id: tiff-palette.c,v 1.4 2009-11-30 18:42:53 fwarmerdam Exp $ */
/*
* tiff-palette.c -- create a Class P (palette) TIFF file
@@ -219,6 +219,7 @@ int main(int argc, char **argv)
if ((tif = TIFFOpen(argv[3], "w")) == NULL) {
fprintf(stderr, "can't open %s as a TIFF file\n", argv[3]);
+ free(red);free(green);free(blue);
return 0;
}