kike: fix two memory leaks

This commit is contained in:
Přemysl Eric Janouch 2017-06-22 20:36:21 +02:00
parent 156ea32a90
commit 933760c2a2
Signed by: p
GPG Key ID: B715679E3A361BE6
1 changed files with 2 additions and 0 deletions

2
kike.c
View File

@ -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) -----------------------------------------------------