Rajaram-Regupathy / libtypec

“libtypec” is aimed to provide a generic interface abstracting all platform complexity for user space to develop tools for efficient USB-C port management. The library can also enable development of diagnostic and debug tools to debug system issues around USB-C/USB PD topology.
34 stars 4 forks source link

Fix a file pointer leak on missing fclose in count_billbrd_if #26

Closed ColinIanKing closed 10 months ago

ColinIanKing commented 1 year ago

A file is being opened but it is not being fclosed at the end of the function, leading to a file descriptor leak. Fix this by adding the missing fclose.