kike: fix two memory leaks
This commit is contained in:
parent
156ea32a90
commit
933760c2a2
2
kike.c
2
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) -----------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user