From be5735447806d90f8139c6126cb66da2623b2fc5 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 9 Sep 2018 12:36:16 +0200 Subject: [PATCH] chg: seems to be a free bug on macos --- client/proxmark3.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/proxmark3.c b/client/proxmark3.c index 78230bd36..ae528a9e9 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -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