From c57188844d3694fd750d7610019d8cbd7fde1712 Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 22 Apr 2017 12:55:06 +0000 Subject: [PATCH] Memory leak from David CARLIER. --- usr.bin/tmux/status.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.20.1