diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-04-16 11:53:39 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-04-16 11:53:39 +0000 |
commit | aef2858304dcadee05250c520b3c4560cef715cd (patch) | |
tree | 4b48280aa1d5457dcca9a30809e055e6f4c94f6b /lib | |
parent | 983a57ed4a08adc7c3d6c88e831412af8bf6cddc (diff) |
ptr->term_names can point into ptr->str_table, so don;t free that one.
fixes PR #5447. Fix verifed to be equal to the ifndef NO_LEAK part of
current ncurses.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcurses/tinfo/free_ttype.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcurses/tinfo/free_ttype.c b/lib/libcurses/tinfo/free_ttype.c index 987a3dfd4b1..3fac7bc6122 100644 --- a/lib/libcurses/tinfo/free_ttype.c +++ b/lib/libcurses/tinfo/free_ttype.c @@ -1,4 +1,4 @@ -/* $OpenBSD: free_ttype.c,v 1.5 2001/01/22 18:01:51 millert Exp $ */ +/* $OpenBSD: free_ttype.c,v 1.6 2007/04/16 11:53:38 otto Exp $ */ /**************************************************************************** * Copyright (c) 1999,2000 Free Software Foundation, Inc. * @@ -51,7 +51,6 @@ NCURSES_EXPORT(void) _nc_free_termtype(TERMTYPE * ptr) { FreeIfNeeded(ptr->str_table); - FreeIfNeeded(ptr->term_names); FreeIfNeeded(ptr->Booleans); FreeIfNeeded(ptr->Numbers); FreeIfNeeded(ptr->Strings); |