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

Memory Leak in QString::number()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.0.2, 5.1.0 Beta 1
    • None
    • Windows 7 Qt 5.1.0 Beta 1 (32 bit msvc), Mac OS X 10.7, Qt 5.0.2 (64 bit) clang
    • 403c46b9b72eaefb7abacc691da591c3f33d9857

    Description

      The following very simple program causes a massive memory leak.

      #include <QString>
      
      int main(int argc, char *argv[])
      {
          forever
          {
              QString::number(0);
          }
      
          return 0;
      }
      

      Be careful while executing, it will eat up your memory very fast.

      The same behaviour can be observed with Windows 7 Sp1!

      The memory leak does not occur with Qt 4.8.4!

      Attachments

        Issue Links

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

          Activity

            People

              smd Jan Arve
              derhandwerk Wolf Bublitz
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes