From e1d177b8429e4eb59f5a6e853009dbf97ab95068 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 22 Jun 2018 23:10:27 -0700 Subject: Fix some memory errors (mostly leaks) identified by valgrind --- genesis.c | 1 - 1 file changed, 1 deletion(-) (limited to 'genesis.c') diff --git a/genesis.c b/genesis.c index 0c2d4b4..3fc9895 100644 --- a/genesis.c +++ b/genesis.c @@ -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)); -- cgit v1.2.3