ralphlange / procServ

Wrapper to start arbitrary interactive commands in the background, with telnet or Unix domain socket access to stdin/stdout
GNU General Public License v3.0
23 stars 23 forks source link

Memory Leak Due To Telnet Connections #2

Closed mcbrowne64 closed 9 years ago

mcbrowne64 commented 9 years ago

There is no call to telnet_free in clientItem::~clientItem, so a small amount of memory leaks with every connection. A line of the form: if ( _telnet ) telnet_free( _telnet ); is needed to avoid this problem.

ralphlange commented 9 years ago

Well spotted! Committed your fix. Thanks for pointing this out!