SolidWallOfCode commented on a change in pull request #7606:
URL: https://github.com/apache/trafficserver/pull/7606#discussion_r602545941
##########
File path: proxy/ControlBase.cc
##########
@@ -411,7 +410,7 @@ struct TextMod : public ControlBase::Modifier {
TextMod::TextMod() : text() {}
TextMod::~TextMod()
{
- free(text.data());
Review comment:
I dislike `const_cast`. In this case would a `char const*` work as well?
Another alternative would be `MemSpan<char>` which provides a `view` method to
extract a view when needed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]