diff options
-rw-r--r-- | analyzer/pgmhist.c | 2 | ||||
-rw-r--r-- | converter/other/pamtompfont.c | 4 | ||||
-rw-r--r-- | editor/pbmpscale.c | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/analyzer/pgmhist.c b/analyzer/pgmhist.c index fc55b1a7..032f9ecc 100644 --- a/analyzer/pgmhist.c +++ b/analyzer/pgmhist.c @@ -60,6 +60,8 @@ parseCommandLine(int argc, const char ** argv, "specified %d", argc-1); else cmdlineP->inputFileName = argv[1]; + + free(option_def); } diff --git a/converter/other/pamtompfont.c b/converter/other/pamtompfont.c index 7de6396c..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; @@ -69,6 +69,8 @@ parseCommandLine(int argc, char ** argv, "specified %d", argc-1); else cmdlineP->inputFilename = argv[1]; + + free(option_def); } diff --git a/editor/pbmpscale.c b/editor/pbmpscale.c index afe2bdd4..15302c56 100644 --- a/editor/pbmpscale.c +++ b/editor/pbmpscale.c @@ -126,6 +126,7 @@ parseCommandLine(int argc, const char ** const argv, "You specified %u", argc-1); } } + free(option_def); } |