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

Potential memory leak when creating tables fails

    XMLWordPrintable

Details

    • 772a749c7eee1f32de75ce26ee8beb6d9cf9ff46 (qt/qttools/dev) dc5fed5555d1c904753e83fd90aeecae547146ce (qt/qttools/5.15)

    Description

      In qhelpcollectionhandler.cpp, QHelpCollectionHandler::copyCollectionFile: the QSqlQuery 'copyQuery' is allocated on the heap, but not deleted if a failure of either createTables or recreateIndexAndNamespaceFilterTables results in a premature return.

      Coverity issue here:

      https://scan3.coverity.com/reports.htm#v42553/p10113/fileInstanceId=32687441&defectInstanceId=8977104&mergedDefectId=21930

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-83913
          # Subject Branch Project Status CR V

          Activity

            People

              jkobus Jarek Kobus
              vhilshei Volker Hilsheimer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes