diff options
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r-- | build/parsePrep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c index 8dee3134f..fe37575e6 100644 --- a/build/parsePrep.c +++ b/build/parsePrep.c @@ -236,7 +236,6 @@ static int doSetupMacro(rpmSpec spec, const char *line) int argc; const char ** argv = NULL; int arg; - const char * optArg; int xx; rpmRC rc = RPMRC_FAIL; uint32_t num; @@ -264,7 +263,7 @@ static int doSetupMacro(rpmSpec spec, const char *line) optCon = poptGetContext(NULL, argc, argv, optionsTable, 0); while ((arg = poptGetNextOpt(optCon)) > 0) { - optArg = poptGetOptArg(optCon); + char *optArg = poptGetOptArg(optCon); /* We only parse -a and -b here */ @@ -281,6 +280,7 @@ static int doSetupMacro(rpmSpec spec, const char *line) appendLineStringBuf((arg == 'a' ? after : before), chptr); free(chptr); } + free(optArg); } if (arg < -1) { |