Blake Bender created GEODE-8674:
-----------------------------------
Summary: CLI DataInput object leaks internal buffer when
allocating ctor is called
Key: GEODE-8674
URL: https://issues.apache.org/jira/browse/GEODE-8674
Project: Geode
Issue Type: Improvement
Components: native client
Reporter: Blake Bender
The CLI DataInput object has two ctors, one of which copies the passed-in
buffer parameter via new[] and one of which doesn't. In the event that the
former is called, the buffer is leaked when the object is deleted/Disposed.
Here's the current code for CLI `DataInput::~DataInput`:
```
~DataInput( ) \{ Cleanup(); }
```
And the code for `DataInput::Cleanup`:
```
void DataInput::Cleanup()
{
//TODO:
//GF_SAFE_DELETE_ARRAY(m_buffer);
}
```
So apparently this bug has been known for some time (?!?), but has never been
fixed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)