qt6-bb10/tests/auto/network/access/qnetworkcookiejar
Marc Mutz d3c08df330 tst_QNetworkCookieJar: fix memleak
QTest::toString() returns a new[]'ed char array, which needs to be
manually deleted and QVERIFY2() doesn't take ownership of its second
argument.

Fix by wrapping in unique_ptr<char[]>(...).get().

Bug exists since the dawn of the public history.

Pick-to: 6.6 6.5 6.2 5.15
Change-Id: I19ec09f46ec0ce5eacf1437f62dc625bc9343831
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2023-07-14 14:56:10 +02:00
..
testdata/publicsuffix Update public suffix list 2023-07-06 17:53:11 +02:00
.gitignore
CMakeLists.txt CMake: Make network tests standalone projects 2023-07-05 15:09:32 +02:00
parser.json
tst_qnetworkcookiejar.cpp tst_QNetworkCookieJar: fix memleak 2023-07-14 14:56:10 +02:00