Free memory allocated with malloc()
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
/* Destructor - closes any open sockets */
|
||||
Client::~Client() {
|
||||
free(dest);
|
||||
close(this->other_socket);
|
||||
close(this->sock_fd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user