Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/OutputTask/OutputTask.cpp
- Revision:
- 276:851554207c77
- Parent:
- 274:e2caebc7c65e
--- a/src/OutputTask/OutputTask.cpp Wed Oct 26 20:10:37 2016 +0000
+++ b/src/OutputTask/OutputTask.cpp Wed Oct 26 20:31:39 2016 +0000
@@ -260,6 +260,7 @@
cJSON * root = cJSON_Parse(dataBuf);
std::string id = cJSON_GetObjectItem(root,"id")->valuestring;
+ cJSON_Delete(root);
vector<Control> v;
outputMap[id] = v;
@@ -436,6 +437,7 @@
//parse( json_value, scratchBuf );
std::string id = cJSON_GetObjectItem(root,"id")->valuestring;
printf("\r output %s loaded\n", i->name);
+ cJSON_Delete(root);
// emplace the empty control vector into the output map
vector<Control> v;
