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

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