- **Milestone**: 5.19.01 --> future
---
** [tickets:#2890] dtm: memory leak when using command osaflog --delete
STREAM**
**Status:** unassigned
**Milestone:** future
**Created:** Wed Jul 04, 2018 10:59 AM UTC by Canh Truong
**Last Updated:** Wed Jan 09, 2019 09:23 PM UTC
**Owner:** nobody
When using command osaflog --delete STREAM, the stream is just removed from
the map but it has not be freed the alocated memory.
} else if (command == "?delete") {
if (!ValidateLogName(argument.c_str(), argument.size()) ||
argument == kMdsLogStreamName) {
return std::string{"Invalid stream name"};
}
auto iter = log_streams_.find(argument);
if (iter == log_streams_.end()) {
return std::string{"Stream not found"};
}
LogStream* stream = iter->second;
log_streams_.erase(iter);
if (current_stream_ == stream) {
current_stream_ = log_streams_.begin()->second;
}
return std::string{"!delete " + argument};
}
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets