Closed psychocoderHPC closed 6 years ago
The method generateCollectionType() used in getType() is returning a pointer those must be freed by the caller. Due to the reason that getType is returning a reference this is not obvious for the caller.
generateCollectionType()
getType
Wrong alarm the memory is freed in the destructor https://github.com/ComputationalRadiationPhysics/libSplash/blob/140d6ce903d265909c3f8021d5d9cc04e5a72d37/src/AttributeInfo.cpp#L42
The method
generateCollectionType()
used in getType() is returning a pointer those must be freed by the caller. Due to the reason thatgetType
is returning a reference this is not obvious for the caller.