From d264ef17d8021ae855b6c0f79cb95bca787780c1 Mon Sep 17 00:00:00 2001 From: Godzil Date: Mon, 28 Oct 2019 14:08:43 +0000 Subject: [PATCH] Remove the segfault while exiting (was not really critical, but it's more clean) For that: stop trying to free memory that was not malloc-ed. --- oswan/source/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oswan/source/memory.cpp b/oswan/source/memory.cpp index e0d58e0..7ff5e6c 100644 --- a/oswan/source/memory.cpp +++ b/oswan/source/memory.cpp @@ -400,7 +400,7 @@ void ws_memory_reset(void) //////////////////////////////////////////////////////////////////////////////// void ws_memory_done(void) { - free(ws_rom); + //free(ws_rom); free(ws_staticRam); free(internalRam); free(externalEeprom);