Skip to content

Commit

Permalink
Memory leak fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MadDeCoDeR committed Apr 3, 2024
1 parent 52492ee commit 5f51032
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomclassic/doom/g_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,8 @@ qboolean G_DoLoadGame ()
::g->save_p += strlen(tlab);
}

free(tlab);

::g->gameskill = (skill_t)*::g->save_p++;
::g->gameepisode = *::g->save_p++;
::g->gamemission = *::g->save_p++;
Expand Down

0 comments on commit 5f51032

Please sign in to comment.