lemanhtrung / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

memory leak in QextSerialEnumerator::setupAPIScan function #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. calling getPorts() function

What version of the product are you using? On what operating system?
OS: Win XP

Please provide any additional information below.
The return pointer of this function:
devInfo = SetupDiGetClassDevs(...), 
should be deleted by SetupDiDestroyDeviceInfoList(devInfo) function. But it 
doesn't.

Original issue reported on code.google.com by akoda...@gmail.com on 9 Nov 2010 at 3:54

GoogleCodeExporter commented 9 years ago
Looking at the recent source 
(http://code.google.com/p/qextserialport/source/browse/src/qextserialenumerator_
win.cpp, QextSerialEnumerator::enumerateDevicesWin()):
SetupDiDestroyDeviceInfoList(devInfo) is called if SetupDiGetClassDevs(...) 
returns a valid pointer. This looks ok to me.

Original comment by morck...@gmail.com on 1 Dec 2010 at 12:28

GoogleCodeExporter commented 9 years ago

Original comment by michpoli...@gmail.com on 19 Jul 2012 at 7:02