Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62691

Valgrind Memory Leak in QXmlSchema (5.9.1)

    XMLWordPrintable

Details

    • 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

        Activity

          People

            erikv Erik Verbruggen
            beose Fero
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: