-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential memory leaks in
TcpClient::send
(#2753)
This PR addresses a concern raised by Coverity. The `TcpClient::send(const char*, ...` method is tricky because it can either use the existing stream or create a new one. Further leaks are possible in `TcpClient::send(IDataSourceStream*, ...` when inspecting the failure paths. The code has been refactored using `std::unique_ptr` guards. [scan:coverity]
- Loading branch information
Showing
1 changed file
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters