commit | 472fffb37530256702006ef00b6fcf949ecbc26c | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Tue Mar 09 05:20:24 2010 +0000 |
committer | David Reiss <dreiss@apache.org> | Tue Mar 09 05:20:24 2010 +0000 |
tree | 7dcbdd2a01874a87d1831d03f5a8cea3e0c76633 | |
parent | ccd4bdb2aebee869c537c8a38fd1c00e9ac706b3 [diff] [blame] |
cpp: Don't leak memory on realloc failure in TNonblockingServer git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920689 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/server/TNonblockingServer.h b/lib/cpp/src/server/TNonblockingServer.h index 41a2bf5..70f46c6 100644 --- a/lib/cpp/src/server/TNonblockingServer.h +++ b/lib/cpp/src/server/TNonblockingServer.h
@@ -708,6 +708,7 @@ } ~TConnection() { + std::free(readBuffer_); server_->decrementNumConnections(); }