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

Resource leaks in tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.4.0 FF
    • Qt Http Server
    • None

      Tests for the module allocate stuff in a few places using new but never bother to release it (qthttpserver/tests/auto/qabstracthttpserver/tst_qabstracthttpserver.cpp as an example). It would be good to make sure that all temporary objects are destroyed when test finishes. In most cases allocating objects on the stack instead would be sufficient.

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

            mikhailsvetkin Mikhail Svetkin
            ievgenii.meshcheriakov Ievgenii Meshcheriakov
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes