From d04463678ff896cdc7d3f00ef1abe814a2e0e7f7 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 18 Nov 2012 01:25:08 +0000 Subject: Free some option_defs git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1767 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- analyzer/pgmhist.c | 2 ++ converter/other/pamtompfont.c | 4 +++- editor/pbmpscale.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) 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); } -- cgit 1.4.1