realloc check?

This commit is contained in:
iceman1001 2019-03-18 20:35:03 +01:00
parent 28b074106d
commit 7deb99b999

View file

@ -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;