realloc check?

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

View file

@ -261,6 +261,9 @@ int CmdFlashMemLoad(const char *Cmd) {
} }
data = realloc(data, datalen); data = realloc(data, datalen);
if (!data) {
return 1;
}
//Send to device //Send to device
uint32_t bytes_sent = 0; uint32_t bytes_sent = 0;