Fix a couple of memory leaks, from marcel partap.

This commit is contained in:
Nicholas Marriott
2011-08-20 20:37:30 +00:00
parent 88e9079870
commit 3657aa675e
2 changed files with 5 additions and 1 deletions

View File

@ -171,6 +171,8 @@ server_client_lost(struct client *c)
if (c->cwd != NULL)
xfree(c->cwd);
environ_free(&c->environ);
close(c->ibuf.fd);
imsg_clear(&c->ibuf);
event_del(&c->event);