Skip to content

Commit

Permalink
Merge branch 'master' into find-memory-leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jul 21, 2023
2 parents 003948b + 6782810 commit 80df5a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/fnjson/fnjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80df5a3

Please sign in to comment.