fix: double free shouldn't happen now
This commit is contained in:
1 parent
20e4af5856
commit
08bf63c748
3 files changed
+12
-10
No files matched your search
+1
-5
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user