Commit d5a0aa58 authored by Dustin L. Howett's avatar Dustin L. Howett

In the server dtor: Free readbuf and writebuf properly. Free hostname.

parent 294d42f8
...@@ -77,10 +77,12 @@ uint8_t *server::freeze(uint32_t *outlen) { ...@@ -77,10 +77,12 @@ uint8_t *server::freeze(uint32_t *outlen) {
} }
server::~server() { server::~server() {
free(this->readbuf); delete[] this->readbuf;
free(this->writebuf); delete[] this->writebuf;
if(this->nick) if(this->nick)
free(this->nick); free(this->nick);
if(this->hostname)
free(this->hostname);
} }
const int server::getFd() { return fd; } const int server::getFd() { return fd; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment