chg: seems to be a free bug on macos

This commit is contained in:
Chris 2018-09-09 12:36:16 +02:00
parent d774e4c84f
commit be57354478

View file

@ -186,9 +186,10 @@ main_loop(char *script_cmds_file, char *script_cmd, bool usb_present) {
write_history(".history");
free(cmd);
cmd = NULL;
if (cmd) {
free(cmd);
cmd = NULL;
}
}
static void dumpAllHelp(int markdown) {
@ -353,8 +354,6 @@ int main(int argc, char* argv[]) {
// try to open USB connection to Proxmark
usb_present = OpenProxmark(argv[1], waitCOMPort, 20, false);
printf("\x1b[31m test\n");
#ifdef HAVE_GUI
# ifdef _WIN32