From: Klas Lindfors Date: Mon, 3 Dec 2012 09:19:47 +0000 (+0100) Subject: release vendorId even if no YubiKey is found X-Git-Tag: v1.10.0~22 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97f9b324a1eddcd527a7f570fa54a27b4cda6e7f;p=yubikey-personalization release vendorId even if no YubiKey is found --- diff --git a/ykcore/ykcore_osx.c b/ykcore/ykcore_osx.c index 616a4d3..c59f484 100644 --- a/ykcore/ykcore_osx.c +++ b/ykcore/ykcore_osx.c @@ -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) {