]> err.no Git - yubikey-personalization/commitdiff
release vendorId even if no YubiKey is found
authorKlas Lindfors <klas@yubico.com>
Mon, 3 Dec 2012 09:19:47 +0000 (10:19 +0100)
committerKlas Lindfors <klas@yubico.com>
Mon, 3 Dec 2012 09:19:47 +0000 (10:19 +0100)
ykcore/ykcore_osx.c

index 616a4d3b0414dfc960c7e52beac1196058ee2281..c59f4842ae4463b7125d83eee1f9006f0af2a0f5 100644 (file)
@@ -121,11 +121,11 @@ void *_ykusb_open_device(int vendor_id, int *product_ids, size_t pids_len)
                IOHIDManagerScheduleWithRunLoop( ykosxManager, CFRunLoopGetCurrent( ), kCFRunLoopDefaultMode );
                IOHIDManagerUnscheduleFromRunLoop( ykosxManager, CFRunLoopGetCurrent( ), kCFRunLoopDefaultMode );
 
-               CFRelease( vendorID );
                CFRelease( array );
                CFRelease( devSet );
        }
 
+       CFRelease( vendorID );
        CFRelease( matches );
 
        if (yk) {