Details
-
Bug
-
Resolution: Fixed
-
Critical
-
4.1.0, 4.5.0
-
None
-
Untriaged
-
No
Description
As per Aliaksey Artamonau comments on CBSE-2489
Memory leak
If http://src.couchbase.org/source/xref/4.1.0/couchdb/src/mapreduce/mapreduce.cc#186 throws, nothing is going to release the isolate created earlier in the function.
Yet another memory leak
When initContext (http://src.couchbase.org/source/xref/4.1.0/couchdb/src/mapreduce/mapreduce_nif.cc#113) throws any exception (this is what happens if there's an error in view definitions), enif_release_context is never called. So the memory allocated for the ctx is never released.
Attachments
For Gerrit Dashboard: MB-19378 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
63412,8 | MB-19378 Handle memory leaks in context initialization | master | couchdb | Status: MERGED | +2 | +1 |
63624,2 | [BP] MB-19378 Handle memory leaks in context initialization | sherlock | couchdb | Status: ABANDONED | 0 | +1 |