-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: JavaScript
-
Labels:
-
Fully Compatible
-
ALL
-
Platforms 2017-07-10
An internal pointer of a wrapper object remains available after the object is freed
Defect 101168 (STATIC_C)
Checker WRAPPER_ESCAPE (subcategory none)
File: /src/mongo/scripting/mozjs/proxyscope.cpp
Function mongo::mozjs::MozJSProxyScope::implThread(void *)
/src/mongo/scripting/mozjs/proxyscope.cpp, line: 336
The internal representation of local "scope" escapes into "proxy->_implScope", but is destroyed when it exits scope.
proxy->_implScope = scope.get();