if (ret == 99)
break;
}
- free(cmd);
} else {
printf("\n");
break;
}
write_history(".history");
-
+
+ free(cmd);
+
if (arg->usb_present == 1) {
rarg.run = 0;
pthread_join(reader_thread, NULL);
// clean up mutex
pthread_mutex_destroy(&print_lock);
-
+
exit(0);
}