djpnewton / vmulti

Virtual Multiple HID Driver (multitouch, mouse, digitizer, keyboard, joystick)
MIT License
401 stars 171 forks source link

Double free in client.c when SetupDiGetDeviceInterfaceDetail fails #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In OpenDeviceInterface function, client.c:512 when 
SetupDiGetDeviceInterfaceDetail fails the current logic would free 
deviceInterfaceDetailData, then jump to cleanup where there would be an attempt 
to free it again.

The first free() in line 512 should be removed.

Original issue reported on code.google.com by mlukas...@gmail.com on 28 Apr 2014 at 2:46