diff --git a/lib/fnjson/fnjson.cpp b/lib/fnjson/fnjson.cpp index ba858f93d..cecad94af 100644 --- a/lib/fnjson/fnjson.cpp +++ b/lib/fnjson/fnjson.cpp @@ -293,7 +293,11 @@ bool FNJSON::parse() return false; } - Debug_printf("Parsed JSON: %s\r\n", cJSON_Print(_json)); + char* debugOutput = cJSON_Print(_json); + if (debugOutput != nullptr) { + Debug_printf("Parsed JSON: %s\r\n", debugOutput); + cJSON_free(debugOutput); + } return true; } diff --git a/src/main.cpp b/src/main.cpp index 7e859a6da..273c39645 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -352,7 +352,7 @@ extern "C" // Create a new high-priority task to handle the main loop // This is assigned to CPU1; the WiFi task ends up on CPU0 #ifdef BUILD_ATARI -#define MAIN_STACKSIZE 8192 +#define MAIN_STACKSIZE 32768 #define MAIN_PRIORITY 10 #else #define MAIN_STACKSIZE 32768