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