Fix segfault on rigctl exit

If rigctl does a recovery close/open cycle, a freed buffer gets reused.
This can cause segfault or worse.
pull/1347/head
George Baltz N3GB 2023-07-28 08:13:03 -04:00
rodzic 342e082fbb
commit 192b5fe7a5
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -8112,6 +8112,7 @@ void *morse_data_handler(void *arg)
}
free(rig->state.fifo_morse);
rig->state.fifo_morse = NULL;
pthread_exit(NULL);
return NULL;
}