From: nicm Date: Sat, 22 Apr 2017 12:55:06 +0000 (+0000) Subject: Memory leak from David CARLIER. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c57188844d3694fd750d7610019d8cbd7fde1712;p=openbsd Memory leak from David CARLIER. --- diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c index bd948b9ea7b..d1d4bab061f 100644 --- a/usr.bin/tmux/status.c +++ b/usr.bin/tmux/status.c @@ -1,4 +1,4 @@ -/* $OpenBSD: status.c,v 1.162 2017/02/09 12:09:33 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.163 2017/04/22 12:55:06 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1497,6 +1497,7 @@ status_prompt_complete(struct session *session, const char *s) out = status_prompt_complete_prefix(list, size); if (out != NULL) { xasprintf(&tmp, "-%c%s%s", copy[1], out, colon); + free(out); out = tmp; goto found; }