diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-04-22 06:13:31 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-04-22 06:13:31 +0000 |
commit | 7dacec96629ca9cf12bfbb31ffcec3d881b74045 (patch) | |
tree | 43559f016d711a5f94b7c194c63275f4744ed548 /usr.bin/tmux/options.c | |
parent | dad77f0ade2df22ab8afa6eddc7ff3d6f9d53883 (diff) |
Memory leaks, from David CARLIER.
Diffstat (limited to 'usr.bin/tmux/options.c')
-rw-r--r-- | usr.bin/tmux/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c index b433c2ef50b..42722f972d0 100644 --- a/usr.bin/tmux/options.c +++ b/usr.bin/tmux/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.33 2017/03/08 14:43:40 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.34 2017/04/22 06:13:30 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -433,7 +433,7 @@ options_match(const char *s, int *idx, int* ambiguous) if (*name == '@') { *ambiguous = 0; - return (xstrdup(name)); + return (name); } found = NULL; |