diff options
author | 2019-10-14 08:38:07 +0000 | |
---|---|---|
committer | 2019-10-14 08:38:07 +0000 | |
commit | d09880d0e41b96edf6d49b3373da7d305c24fbe6 (patch) | |
tree | 2537668411d9b185b9b07e7b7390291bed2b1f9d /usr.bin/tmux/options.c | |
parent | unpriv(): propagate error code to the caller instead of failing hard. (diff) | |
download | wireguard-openbsd-d09880d0e41b96edf6d49b3373da7d305c24fbe6.tar.xz wireguard-openbsd-d09880d0e41b96edf6d49b3373da7d305c24fbe6.zip |
Memory leaks, from Igor Wong in GitHub issue 1934.
Diffstat (limited to 'usr.bin/tmux/options.c')
-rw-r--r-- | usr.bin/tmux/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c index b31061b7066..56fee7da9c7 100644 --- a/usr.bin/tmux/options.c +++ b/usr.bin/tmux/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.52 2019/06/23 10:00:29 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.53 2019/10/14 08:38:07 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -296,6 +296,7 @@ options_remove(struct options_entry *o) else options_value_free(o, &o->value); RB_REMOVE(options_tree, &oo->tree, o); + free((void *)o->name); free(o); } |