-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
Fully Compatible
-
ALL
-
v8.0
When the OIDCIdPauthCallback function in mongo.cpp (see https://github.com/10gen/mongo/blob/master/src/mongo/scripting/mozjs/mongo.cpp#L890C19-L890C26, we allocate a new Scope without using an RAII container (i.e unique_ptr). This is introduces a memory leak.
Consider assigning the newly allocated pointer into a unique_ptr to ensure it gets deleted at the end of the scope.