From 11ff76bc9e370d4ca236f29363713aa4f29835da Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 16 Apr 2017 20:33:46 +0000 Subject: [PATCH] Memory leak, from David CARLIER. --- usr.bin/tmux/tmux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index 68affab3ecc..bb55e6d9595 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.178 2017/03/21 19:28:03 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.179 2017/04/16 20:33:46 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -141,6 +141,8 @@ make_label(const char *label) if (realpath(base, resolved) == NULL) strlcpy(resolved, base, sizeof resolved); xasprintf(&path, "%s/%s", resolved, label); + + free(base); return (path); fail: -- 2.20.1