diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-06-22 23:10:27 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-06-22 23:10:27 -0700 |
commit | e1d177b8429e4eb59f5a6e853009dbf97ab95068 (patch) | |
tree | 4733ff57c8a2fbac7470ca64d89852ae01908686 /genesis.c | |
parent | e9dcae6c35185d58f41d49b8952f9d55984532fd (diff) |
Fix some memory errors (mostly leaks) identified by valgrind
Diffstat (limited to 'genesis.c')
-rw-r--r-- | genesis.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1301,7 +1301,6 @@ genesis_context *alloc_init_genesis(rom_info *rom, void *main_rom, void *lock_on gen->psg = malloc(sizeof(psg_context)); psg_init(gen->psg, gen->master_clock, MCLKS_PER_PSG); - gen->zram = calloc(1, Z80_RAM_BYTES); z80_map[0].buffer = gen->zram = calloc(1, Z80_RAM_BYTES); #ifndef NO_Z80 z80_options *z_opts = malloc(sizeof(z80_options)); |