Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
fixed memory leak, memory allocated by new[] was freed by delete inst…
Browse files Browse the repository at this point in the history
…ead of delete[]
  • Loading branch information
nazgob committed Jun 15, 2011
1 parent ec3a827 commit 720deef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void Connection::readDataBlock() {
buffer[m_expectingDataSize] = 0;
processNext(buffer);
m_expectingDataSize = -1;
delete buffer;
delete[] buffer;
}

void Connection::processNext(const char *data) {
Expand Down

0 comments on commit 720deef

Please sign in to comment.