Free memory allocated with malloc()

This commit is contained in:
2024-03-20 00:02:41 -04:00
parent 1641cef13b
commit b6439bf7d5
4 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
/* Destructor - closes any open sockets */
Client::~Client() {
free(dest);
close(this->other_socket);
close(this->sock_fd);
}