artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfcb8d2
)
Memory leak from David CARLIER.
author
nicm
<nicm@openbsd.org>
Sat, 22 Apr 2017 12:55:06 +0000
(12:55 +0000)
committer
nicm
<nicm@openbsd.org>
Sat, 22 Apr 2017 12:55:06 +0000
(12:55 +0000)
usr.bin/tmux/status.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/status.c
b/usr.bin/tmux/status.c
index
bd948b9
..
d1d4bab
100644
(file)
--- a/
usr.bin/tmux/status.c
+++ b/
usr.bin/tmux/status.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: status.c,v 1.16
2 2017/02/09 12:09:33
nicm Exp $ */
+/* $OpenBSD: status.c,v 1.16
3 2017/04/22 12:55:06
nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@
-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;
}