Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.15.2
-
None
Description
const QStringList versions{"1.0", "2.0", "3.0"}; QVersionNumber vn(1, 0, 0); for (const auto &v : versions) { auto parsedVn = QVersionNumber::fromString(v); if (!parsedVn.isNull() && parsedVn > vn) vn = parsedVn; }
produces the warning visible in the image. valgrind does not report any issues, though. It might be a false positive.
Potential memory leak of memory pointed to by 'vn.m_segments..pointer_segments'