artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c809e7
)
Memory leak, from David CARLIER.
author
nicm
<nicm@openbsd.org>
Sun, 16 Apr 2017 20:33:46 +0000
(20:33 +0000)
committer
nicm
<nicm@openbsd.org>
Sun, 16 Apr 2017 20:33:46 +0000
(20:33 +0000)
usr.bin/tmux/tmux.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/tmux.c
b/usr.bin/tmux/tmux.c
index
68affab
..
bb55e6d
100644
(file)
--- a/
usr.bin/tmux/tmux.c
+++ b/
usr.bin/tmux/tmux.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: tmux.c,v 1.17
8 2017/03/21 19:28:03
nicm Exp $ */
+/* $OpenBSD: tmux.c,v 1.17
9 2017/04/16 20:33:46
nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@
-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: