FIXED: Merged all Holimans code-review issues which should fix a lot of memoryleaks.

This commit is contained in:
iceman1001 committed 2014-10-30 00:09:01 +01:00
1 parent 7c756d6892
commit a61b4976bd
18 files changed
+142 -137

No files matched your search

+4 -2
View File
@@ -137,9 +137,11 @@ int getCommand(UsbCommand* response)
* @return true if command was returned, otherwise false
*/
bool WaitForResponseTimeout(uint32_t cmd, UsbCommand* response, size_t ms_timeout) {
UsbCommand resp;
if (response == NULL) {
UsbCommand resp;
response = &resp;
}