]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/uart.c
Potential fix for 0-length usb packets seen on OSX
[proxmark3-svn] / client / uart.c
index f7c5e35c3b0d7ad0a04c950c0ab55d328712933b..4b2fee994f533d0044c729f36ce01690c113a8aa 100644 (file)
@@ -73,6 +73,7 @@ serial_port uart_open(const char* pcPortName)
   // Does the system allows us to place a lock on this file descriptor
   if (fcntl(sp->fd, F_SETLK, &fl) == -1) {
     // A conflicting lock is held by another process
+    free(sp);
     return CLAIMED_SERIAL_PORT;
   }
 
Impressum, Datenschutz