From 933760c2a26732634e86f6695549fb7834b3bb49 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Thu, 22 Jun 2017 20:36:21 +0200 Subject: kike: fix two memory leaks --- kike.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kike.c b/kike.c index 6073ea0..efcb39e 100644 --- a/kike.c +++ b/kike.c @@ -388,6 +388,7 @@ client_destroy (struct client *self) str_free (&self->read_buffer); str_free (&self->write_buffer); + free (self->ssl_cert_fingerprint); free (self->nickname); free (self->username); @@ -800,6 +801,7 @@ irc_send_to_roommates (struct client *c, const char *message) while ((target = str_map_iter_next (&iter))) if (target != c) client_send (target, "%s", message); + str_map_free (&targets); } // --- Clients (continued) ----------------------------------------------------- -- cgit v1.2.3-70-g09d2