Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.1, 5.11.1
-
Arch Linux
Linux 4.12.8-2-ARCH #1 SMP PREEMPT x86_64 GNU/Linux
-
3b5a20dc02bd00032a19c2951bfa940e6d83aca0
Description
I've found a memory leak in QXmlSchema.
It's easily reproductible using Qt's Xml Schema Validation Example.
$ valgrind --tool=memcheck --leak-check=full ./schema ==22308== 2,464 (104 direct, 2,360 indirect) bytes in 1 blocks are definitely lost in loss record 8,589 of 8,709 ==22308== at 0x4C2C54F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==22308== by 0x6035A8A: ??? (in /usr/lib/libQt5XmlPatterns.so.5.9.1) ==22308== by 0x604147D: ??? (in /usr/lib/libQt5XmlPatterns.so.5.9.1) ==22308== by 0x6041B12: ??? (in /usr/lib/libQt5XmlPatterns.so.5.9.1) ==22308== by 0x5ED52B5: ??? (in /usr/lib/libQt5XmlPatterns.so.5.9.1) ==22308== by 0x5ED55CA: ??? (in /usr/lib/libQt5XmlPatterns.so.5.9.1) ==22308== by 0x5ED454D: QXmlSchema::load(QByteArray const&, QUrl const&) (in /usr/lib/libQt5XmlPatterns.so.5.9.1) ==22308== by 0x10EACA: MainWindow::validate() (mainwindow.cpp:181) ==22308== by 0x10E871: MainWindow::instanceSelected(int) (mainwindow.cpp:166) ==22308== by 0x10DC77: MainWindow::MainWindow() (mainwindow.cpp:111) ==22308== by 0x10D7DD: main (main.cpp:49)
mainwindow.cpp : ligne 181 QXmlSchema schema; schema.setMessageHandler(&messageHandler); schema.load(schemaData);
Attachments
For Gerrit Dashboard: QTBUG-62691 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
234614,3 | Fix a cyclic reference that resulted in a memory leak | 5.11 | qt/qtxmlpatterns | Status: MERGED | +2 | 0 |