Skip to content

Commit 2e5d380

Browse files
committed
readtags: call fclose(tmpFile) even if an error occurs
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent a1671fe commit 2e5d380

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extra-cmds/readtags-cmd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ static tagFile *openTags (const char *const filePath, tagFileInfo *const info)
392392
{
393393
fprintf (stderr, "%s: failed to flush a temporarily file for storing data from stdin\n",
394394
ProgramName);
395+
fclose (tempFP);
395396
exit (1);
396397
}
397398
fclose (tempFP);

0 commit comments

Comments
 (0)