Fix a memory leak in the ReadLineContext class

fixes #7602
This commit is contained in:
Gunnar Beutner 2014-12-01 10:36:38 +01:00
parent 00885f10d0
commit 1c07f5111a
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@ struct ReadLineContext
ReadLineContext(void) : Buffer(NULL), Size(0), Eof(false), MustRead(true) ReadLineContext(void) : Buffer(NULL), Size(0), Eof(false), MustRead(true)
{ } { }
~ReadLineContext(void)
{
free(Buffer);
}
char *Buffer; char *Buffer;
size_t Size; size_t Size;
bool Eof; bool Eof;