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.
Diff: source/http_response_builder.h
- Revision:
- 1:fe3df398bdf5
- Parent:
- 0:41f820ea137a
diff -r 41f820ea137a -r fe3df398bdf5 source/http_response_builder.h
--- a/source/http_response_builder.h Mon Jul 31 15:41:22 2017 +0200
+++ b/source/http_response_builder.h Mon Jul 31 17:12:21 2017 +0200
@@ -169,7 +169,11 @@
size_t res_size;
char* response = build(body, body_size, &res_size);
- return socket->send(response, res_size);
+ nsapi_error_t r = socket->send(response, res_size);
+
+ free(response);
+
+ return r;
}
private: