Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit PR/51706: Amir Plivatsky: Fix memory leak
details: https://anonhg.NetBSD.org/src/rev/9273b6101b90
branches: trunk
changeset: 349479:9273b6101b90
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 11 15:47:06 2016 +0000
description:
PR/51706: Amir Plivatsky: Fix memory leak
diffstat:
lib/libedit/read.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 5999db70baff -r 9273b6101b90 lib/libedit/read.c
--- a/lib/libedit/read.c Sun Dec 11 15:43:48 2016 +0000
+++ b/lib/libedit/read.c Sun Dec 11 15:47:06 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.101 2016/05/25 13:01:11 christos Exp $ */
+/* $NetBSD: read.c,v 1.102 2016/12/11 15:47:06 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: read.c,v 1.101 2016/05/25 13:01:11 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.102 2016/12/11 15:47:06 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -111,6 +111,7 @@
read_clearmacros(&el_read->macros);
el_free(el_read->macros.macro);
el_read->macros.macro = NULL;
+ el_free(el_read);
}
/* el_read_setfn():
Home |
Main Index |
Thread Index |
Old Index