Added check for size of discovered USB devices list. If it is not > 0, don't free it