Skip to content

Commit

Permalink
Merge pull request #77 from jphickey/fix-75-fclose
Browse files Browse the repository at this point in the history
Fix #75, add missing fclose call
  • Loading branch information
dzbaker authored Jan 25, 2024
2 parents e913f93 + 186d731 commit 76633f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tool/src/seds_outputfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ static seds_boolean_t seds_verify_final_file(seds_output_file_t *pfile)

if (fseek(pfile->outfp, pfile->content_start, SEEK_SET) < 0)
{
fclose(refp);
return false;
}

Expand Down Expand Up @@ -477,6 +478,8 @@ static seds_boolean_t seds_verify_final_file(seds_output_file_t *pfile)
result_match = ((ref_end - ref_start) == (pfile->content_end - pfile->content_start));
}

fclose(refp);

return result_match;
}

Expand Down Expand Up @@ -999,4 +1002,3 @@ void seds_outputfile_register_globals(lua_State *lua)
lua_pushcfunction(lua, seds_lua_output_file_close);
lua_setfield(lua, -2, "output_close");
}

0 comments on commit 76633f1

Please sign in to comment.