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

Memory Leak in QOtaClient class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.12.3
    • Device Creation
    • None
    • 7f1fce7f6c8d10bc15c4529e40e08f786708f6b2 (qt/qtotaupdate/master)
    • 2020wk18

    Description

      The function 

      bool QOtaClient::isRepositoryConfigSet(QOtaRepositoryConfig *config) const

      has a memory leak.

       

      bool QOtaClient::isRepositoryConfigSet(QOtaRepositoryConfig *config) const
      {
          QOtaRepositoryConfig *currentConfig = repositoryConfig();
      
          bool isSet = currentConfig && config && currentConfig->url() == config->url() &&
                       currentConfig->gpgVerify() == config->gpgVerify() &&
                       currentConfig->tlsPermissive() == config->tlsPermissive() &&
                       currentConfig->tlsClientCertPath() == config->tlsClientCertPath() &&
                       currentConfig->tlsClientKeyPath() == config->tlsClientKeyPath() &&
                       currentConfig->tlsCaPath() == config->tlsCaPath();
      
          return isSet;
      }
      

       currentConfig is not deleted when the function returns.

       

       

      Attachments

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

        Activity

          People

            sapiippo Samuli Piippo
            daly_ Mr X
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes