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

Leaks of IException objects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.2.8
    • Fix Version/s: 6.4.0
    • Component/s: Roxie
    • Labels:
      None

      Description

      Spotted while staring at code looking for a different issue:

      — a/common/thorhelper/thorsoapcall.cpp
      +++ b/common/thorhelper/thorsoapcall.cpp
      @@ -289,6 +289,7 @@ private:
      }
      catch (IException *e)

      { + // Leaks e StringBuffer s; throw MakeStringException(ROXIE_ABORT_EVENT, "%s", e->errorMessage(s).str()); }

      — a/roxie/ccd/ccdcontext.cpp
      +++ b/roxie/ccd/ccdcontext.cpp
      @@ -2322,6 +2322,7 @@ protected:
      thorMaster.getUrlStr(s);
      s.append("; (").append(e->errorCode()).append(", ");
      e->errorMessage(s).append(")");
      + // leaks e
      throw MakeStringExceptionDirect(-1, s.str());
      }
      ThorReplyCodes replyCode;

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              richardkchapman Richard Chapman
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: