This commit is contained in:
Wolfgang Hottgenroth 2020-09-03 17:09:25 +02:00
parent 4a02773d6d
commit c0556dfa1c
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -211,6 +211,8 @@ void closeSerial(int fd) {
}
t_longframe *request(int fd, uint8_t cmd, uint8_t addr) {
errno = 0;
t_longframe *frame = (t_longframe*) malloc(sizeof(t_longframe));
if (! frame) {
errlog("unable to allocate memory for frame\n");