Open rgl opened 1 year ago
Not all the code paths call v4l2.CloseDevice when there is an error at:
v4l2.CloseDevice
https://github.com/vladimirvivien/go4vl/blob/v0.0.5/device/device.go#L28-L116
All the return statements that return an error should call v4l2.CloseDevice.
return
Thank you for this @rgl . Will take a look.
Not all the code paths call
v4l2.CloseDevice
when there is an error at:https://github.com/vladimirvivien/go4vl/blob/v0.0.5/device/device.go#L28-L116
All the
return
statements that return an error should callv4l2.CloseDevice
.