]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/proxmark3.c
ADD: first try to implement crc-16 for Legic Advant *not working yet* Can't verify it.
[proxmark3-svn] / client / proxmark3.c
index 83b582475da4bb2506b0e738580a9318f834d716..907f5e7f79925cff59149124be406535a554c8d1 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);
@@ -277,6 +278,6 @@ int main(int argc, char* argv[]) {
   
        // clean up mutex
        pthread_mutex_destroy(&print_lock);
-  
+       
        exit(0);
 }
Impressum, Datenschutz