-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
Should free buf_ in the destructor.
socket-programming-examples-c/echo/client.cc
Lines 3 to 12 in e9c726b
| Client::Client(string host, int port) { | |
| // setup variables | |
| host_ = host; | |
| port_ = port; | |
| buflen_ = 1024; | |
| buf_ = new char[buflen_+1]; | |
| } | |
| Client::~Client() { | |
| } |
Metadata
Metadata
Assignees
Labels
No labels