Plug some memory leaks.

This commit is contained in:
Nicholas Marriott
2009-07-30 20:41:48 +00:00
parent 61f3fc7e4d
commit 97f105cde2
4 changed files with 5 additions and 0 deletions

View File

@ -801,6 +801,7 @@ status_prompt_key(struct client *c, int key)
memcpy(first, s, strlen(s));
c->prompt_index = (first - c->prompt_buffer) + strlen(s);
xfree(s);
c->flags |= CLIENT_STATUS;
break;