Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #75, add missing fclose call #77

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");
}