I just ran static analyser "cppcheck" over the source code
of libgphoto2-2.5.2. It said
[usbscsi/linux.c:220]: (error) Resource leak: dir
[usbdiskdirect/linux.c:235]: (error) Resource leak: dir
I checked these two and they are both in error handling code
in the CHECK macro, so maybe not so important.
Log in to post a comment.