Skip to content

Memory Leak #6

Description

@ZENG-Zhuo

Should free buf_ in the destructor.

Client::Client(string host, int port) {
// setup variables
host_ = host;
port_ = port;
buflen_ = 1024;
buf_ = new char[buflen_+1];
}
Client::~Client() {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions