Dear all,
I implemented a memory manager (implementing the tlm_mm_interface interface).
However, whenever I use the manager with TLM, I get loads of memory leaks, that
seem to be caused by the new in the allocate method. Does anybody know an alternative
implementation of this, or does anybody understand how I could avoid the leaks?
What am I doing wrong?
Best regards,
S.
#include <systemc.h>
#include <tlm.h>
class mem_manager : public tlm::tlm_mm_interface{
public:
std::vector<tlm::tlm_generic_payload *> free_list;
tlm::t