]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: Moved a free() call.
authoriceman1001 <iceman@iuse.se>
Mon, 25 Jan 2016 19:22:00 +0000 (20:22 +0100)
committericeman1001 <iceman@iuse.se>
Mon, 25 Jan 2016 19:22:00 +0000 (20:22 +0100)
client/proxmark3.c

index 83b582475da4bb2506b0e738580a9318f834d716..091f6d08a2f5b32b6c435cd4010aa62287f9d11a 100644 (file)
@@ -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);
Impressum, Datenschutz