From: iceman1001 Date: Mon, 25 Jan 2016 19:22:00 +0000 (+0100) Subject: FIX: Moved a free() call. X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/109def22c819619b72bd95e777605d04b81ac78d?ds=sidebyside FIX: Moved a free() call. --- diff --git a/client/proxmark3.c b/client/proxmark3.c index 83b58247..091f6d08 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -166,7 +166,6 @@ static void *main_loop(void *targ) { if (ret == 99) break; } - free(cmd); } else { printf("\n"); break; @@ -174,7 +173,9 @@ static void *main_loop(void *targ) { } write_history(".history"); - + + free(cmd); + if (arg->usb_present == 1) { rarg.run = 0; pthread_join(reader_thread, NULL);