Correct the leak of memory that correspond to EndLinEvent
insert_into_buffer (this);
}
-
+EndLinkEvent::~EndLinkEvent()
+{
+ free(value);
+ free(key);
+}
void EndLinkEvent::print() {
if (instr_fmt_type == instr_fmt_paje) {
XBT_DEBUG("%s: event_type=%d, timestamp=%.*f", __FUNCTION__, (int)event_type, TRACE_precision(), timestamp);
public:
EndLinkEvent (double timestamp, container_t container, type_t type, container_t destContainer,
const char *value, const char *key);
+ ~EndLinkEvent();
void print() override;
};