about summary refs log tree commit diff
path: root/converter/other/pamtompfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/other/pamtompfont.c')
-rw-r--r--converter/other/pamtompfont.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/converter/other/pamtompfont.c b/converter/other/pamtompfont.c
index ba170fef..92f8de29 100644
--- a/converter/other/pamtompfont.c
+++ b/converter/other/pamtompfont.c
@@ -42,7 +42,7 @@ parseCommandLine(int argc, char ** argv,
    Note that the file spec array we return is stored in the storage that
    was passed to us as the argv array.
 -----------------------------------------------------------------------------*/
-    optEntry *option_def;
+    optEntry * option_def;
         /* Instructions to OptParseOptions3 on how to parse our options.
          */
     optStruct3 opt;
@@ -59,7 +59,7 @@ parseCommandLine(int argc, char ** argv,
     opt.short_allowed = FALSE;  /* We have no short (old-fashioned) options */
     opt.allowNegNum = FALSE;  /* We have no parms that are negative numbers */
 
-    optParseOptions3(&argc, argv, opt, sizeof(opt), 0);
+    pm_optParseOptions3(&argc, argv, opt, sizeof(opt), 0);
         /* Uses and sets argc, argv, and some of *cmdlineP and others. */
 
     if (argc-1 == 0) 
@@ -69,6 +69,8 @@ parseCommandLine(int argc, char ** argv,
                  "specified %d", argc-1);
     else
         cmdlineP->inputFilename = argv[1];
+
+    free(option_def);
 }