diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-07-30 21:14:04 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-07-30 21:14:04 +0000 |
commit | 09c64328549676f22a5a541e27a5ad89200e94ad (patch) | |
tree | e04a8d4eb79f630d02f88765f5c21a1f29a56189 /status.c | |
parent | 796bfbd7afa40ef5bbc486c6a4bdb857e8204a29 (diff) | |
download | rtmux-09c64328549676f22a5a541e27a5ad89200e94ad.tar.gz rtmux-09c64328549676f22a5a541e27a5ad89200e94ad.tar.bz2 rtmux-09c64328549676f22a5a541e27a5ad89200e94ad.zip |
Sync OpenBSD patchset 207:
Plug some memory leaks.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: status.c,v 1.106 2009-07-28 23:11:18 tcunha Exp $ */ +/* $Id: status.c,v 1.107 2009-07-30 21:14:04 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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; |