SBE regex memory leak

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Query Execution 2021-05-31
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In this code, it is possible for (bsonRegexTag, bsonRegexVal) to be leaked if the call to makeNewPcreRegex() uasserts while compiling the regex. We should fix this code to be exception safe.

              Assignee:
              Anton Korshunov
              Reporter:
              Ian Boros
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: