Skip to content

Commit 9d53ace

Browse files
N-R-Kguijan
andcommitted
fix memory leak on multiple -F options
Co-authored-by: Guilherme Janczak <[email protected]>
1 parent c793786 commit 9d53ace

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/options.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ static void optionsParseThumbnail(char *optarg)
631631
void optionsParseFileName(const char *optarg)
632632
{
633633
checkMaxOutputFileName(optarg);
634+
free(opt.outputFile);
634635
opt.outputFile = estrdup(optarg);
635636
}
636637

0 commit comments

Comments
 (0)