Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/top/machine pullup 1.4->1.5 (tron): Avoid dupli...
details: https://anonhg.NetBSD.org/src/rev/21b492808799
branches: netbsd-1-4
changeset: 469164:21b492808799
user: perry <perry%NetBSD.org@localhost>
date: Fri Jul 02 17:17:38 1999 +0000
description:
pullup 1.4->1.5 (tron): Avoid duplicate free()
diffstat:
usr.bin/top/machine/m_netbsd13.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r eda9d52526e6 -r 21b492808799 usr.bin/top/machine/m_netbsd13.c
--- a/usr.bin/top/machine/m_netbsd13.c Fri Jul 02 17:08:13 1999 +0000
+++ b/usr.bin/top/machine/m_netbsd13.c Fri Jul 02 17:17:38 1999 +0000
@@ -32,7 +32,7 @@
* matthew green <mrg%eterna.com.au@localhost>
*
*
- * $Id: m_netbsd13.c,v 1.2.2.1 1999/04/26 15:32:25 perry Exp $
+ * $Id: m_netbsd13.c,v 1.2.2.2 1999/07/02 17:17:38 perry Exp $
*/
#define UVM
@@ -403,8 +403,10 @@
memory_stats[5] = dbtob(totalsize) / 1024 - memory_stats[4];
/* Free here, before we malloc again in the next
* iteration of this loop. */
- if (seporig)
+ if (seporig) {
free(seporig);
+ seporig = NULL;
+ }
} while (0);
/* Catch the case where we malloc'd, but then exited the
* loop due to nswap != rnswap. */
Home |
Main Index |
Thread Index |
Old Index