summaryrefslogtreecommitdiff
path: root/kike.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-06-22 20:36:21 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-06-22 20:36:21 +0200
commit933760c2a26732634e86f6695549fb7834b3bb49 (patch)
tree49f6dd70c560f712c0a2e6bf622c75649a3ce9a5 /kike.c
parent156ea32a90860d5d9dc3177ca4fa98f6b0483115 (diff)
downloadxK-933760c2a26732634e86f6695549fb7834b3bb49.tar.gz
xK-933760c2a26732634e86f6695549fb7834b3bb49.tar.xz
xK-933760c2a26732634e86f6695549fb7834b3bb49.zip
kike: fix two memory leaks
Diffstat (limited to 'kike.c')
-rw-r--r--kike.c2
1 files changed, 2 insertions, 0 deletions
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) -----------------------------------------------------