LibVNC / x11vnc

a VNC server for real X displays
GNU General Public License v2.0
725 stars 142 forks source link

Handle leak in screen.c #246

Open sminux opened 6 months ago

sminux commented 6 months ago

Handle leak detected by svace static analyze tool

Describe the bug The handle 'fd' is created at https://github.com/LibVNC/x11vnc/blob/a61f364e385d98677c04070a994397b287385219/src/screen.c#L1778 by calling function 'open' and lost at https://github.com/LibVNC/x11vnc/blob/a61f364e385d98677c04070a994397b287385219/src/screen.c#L2513

To Reproduce

Expected Behavior

Screenshots

Desktop (please complete the following information):

Additional context