Fix memory leakage pathe with no V2 device found
Fix memory leakage pathe with no V2 device found

simonjwright/stlink,chaosAD/stlink,fedorcomander/stlink,swegener/stlink,ros2/stlink,chaosAD/stlink,gtalusan/stlink,fedorcomander/stlink,swegener/stlink,trigrass2/stlink,braincorp/stlink,simonjwright/stlink,12019/stlink,12019/stlink,trigrass2/stlink,braincorp/stlink,ros2/stlink,gtalusan/stlink