From 09c64328549676f22a5a541e27a5ad89200e94ad Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Thu, 30 Jul 2009 21:14:04 +0000 Subject: Sync OpenBSD patchset 207: Plug some memory leaks. --- status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'status.c') diff --git a/status.c b/status.c index 3547e593..eb26dd17 100644 --- a/status.c +++ b/status.c @@ -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 @@ -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; -- cgit