Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18604

CID 1458468: Resource leaks (RESOURCE_LEAK)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: Plugins
    • Labels:
      None

      Description

        • CID 1458468:  Resource leaks  (RESOURCE_LEAK)

      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/fileservices/fileservices.cpp: 2558 in fsGetEspURL()

       

       

      ________________________________________________________________________________________________________

          • CID 1458468:  Resource leaks  (RESOURCE_LEAK)

      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/fileservices/fileservices.cpp: 2558 in fsGetEspURL()

      2552                                             if (username && username[0] && userPW && userPW[0])

      2553                                                 credentials.setf("%s:%s@", username, userPW);

      2554                                             else if (username && username[0])

      2555                                                 credentials.setf("%s@", username);

      2556

      2557                                             if (streq(instanceAddress.str(),"."))

      >>>     CID 1458468:  Resource leaks  (RESOURCE_LEAK)

      >>>     Failing to save or free storage allocated by "fsfResolveHostName(instanceAddress.str())" leaks it.

      2558                                                 instanceAddress = fsfResolveHostName(instanceAddress.str());

      2559

      2560                                             espURL.setf("%s://%s%s:%d", bindingProtocol.str(), credentials.str(), instanceAddress.str(), espBindingIter->query().getPropInt("@port",8010));

      2561

      2562                                             return espURL.detach();

      2563                                         }

       

       

      ________________________________________________________________________________________________________

      To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRaNjvQL1JwbRRXECNADpFWbJmd1u5Ft08MVOUAWsoMXj3-2FOk3grCOW6BgQyMmqdP24-3D_V7u2yOhiGAr-2Biu54nFTzz1cdmowKR-2FlEFg5vqux4F9vuYFE2JpbY8Ypi1vMs2DaH3035E9KURPJOpl5-2FIIvqIrwKZbEsR4zqxFh8legmiCpipEwIdJpS6szYNm0mRLFDmhJOdclZ5uvzYm5I8OfZ-2BezxQe9oj-2FFdfwzAkIN72RuVerHeY22otLJLIDUaIH7rzaA2ZqJ6ndNB8voZPU-2Boe5FA6Egji7pD2wSXfz7-2FCLc-3D

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                attilavamos Attila Vamos
                Reporter:
                attilavamos Attila Vamos
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: