Skip to content

Commit

Permalink
tube: fix double-free.
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Fosdick committed Oct 29, 2023
1 parent ad8c316 commit 02e3676
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/model.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ static void tube_init(void)
log_debug("model: tuberom=%p, romf=%p", tuberom, romf);
if (fread(tuberom, rom_size, 1, romf) == 1) {
fclose(romf);
if (path)
al_destroy_path(path);
if (tube->cpu->init(tuberom)) {
tube_updatespeed();
tube_reset();
Expand Down

0 comments on commit 02e3676

Please sign in to comment.