realloc check?
This commit is contained in:
1 parent
28b074106d
commit
7deb99b999
1 file changed
+3
@@ -261,6 +261,9 @@ int CmdFlashMemLoad(const char *Cmd) {
|
||||
}
|
||||
|
||||
data = realloc(data, datalen);
|
||||
if (!data) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
//Send to device
|
||||
uint32_t bytes_sent = 0;
|
||||
|
||||
Reference in new issue
Block a user