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.