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

Potential memory leak when creating tables fails

XMLWordPrintable

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

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes