fix: double free shouldn't happen now

This commit is contained in:
iceman1001
2017-09-26 22:22:23 +02:00
parent 20e4af5856
commit 08bf63c748
3 changed files with 12 additions and 10 deletions

View File

@@ -372,11 +372,7 @@ int main(int argc, char* argv[]) {
#else
main_loop(script_cmds_file, usb_present);
#endif
// Clean up the port
if (usb_present)
uart_close(sp);
// clean up mutex
pthread_mutex_destroy(&print_lock);