OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.57k stars 1.15k forks source link

An improper locking bug(e.g., deadlock) on the lock runloop_lock #641

Closed ycaibb closed 3 years ago

ycaibb commented 3 years ago

Hi, developers, thank you for your checking. It seems the lock runloop_lock is not released correctly when ret != 0 in the function setup_kinect?

https://github.com/OpenKinect/libfreenect/blob/4d6b941d2c3bc29b278c3ba5e2313c6edb8348eb/wrappers/c_sync/libfreenect_sync.c#L283-L287