Skip to content

Commit

Permalink
fclose if not null.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Dec 11, 2012
1 parent 90bd737 commit 56026c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mrbgems/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ for_each_gem (char before[1024], char after[1024],
skip = FALSE;
else
skip = TRUE;
fclose(check);
if (check)
fclose(check);
}

if (skip == FALSE)
Expand Down

0 comments on commit 56026c2

Please sign in to comment.