FIXED: Merged all Holimans code-review issues which should fix a lot of memoryleaks.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user