Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Remove bogus call to free(3) which caused seve...
details: https://anonhg.NetBSD.org/src/rev/1f5a2a1482b5
branches: trunk
changeset: 516905:1f5a2a1482b5
user: tron <tron%NetBSD.org@localhost>
date: Thu Nov 01 16:06:59 2001 +0000
description:
Remove bogus call to free(3) which caused several warning messages in
application using our "curses" library after the latest change to
memory management in the "c" library.
diffstat:
lib/libcurses/getch.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 2273c6eeb969 -r 1f5a2a1482b5 lib/libcurses/getch.c
--- a/lib/libcurses/getch.c Thu Nov 01 15:49:16 2001 +0000
+++ b/lib/libcurses/getch.c Thu Nov 01 16:06:59 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getch.c,v 1.33 2001/01/10 14:02:32 blymn Exp $ */
+/* $NetBSD: getch.c,v 1.34 2001/11/01 16:06:59 tron Exp $ */
/*
* Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getch.c 8.2 (Berkeley) 5/4/94";
#else
-__RCSID("$NetBSD: getch.c,v 1.33 2001/01/10 14:02:32 blymn Exp $");
+__RCSID("$NetBSD: getch.c,v 1.34 2001/11/01 16:06:59 tron Exp $");
#endif
#endif /* not lint */
@@ -399,7 +399,6 @@
limit = 1023;
cp = t_getstr(_cursesi_genbuf, tc[i].name, &p, &limit);
if (cp != NULL) {
- free(cp);
current = base_keymap; /* always start with
* base keymap. */
length = (int) strlen(entry);
Home |
Main Index |
Thread Index |
Old Index