|
From: <sv...@va...> - 2005-12-27 14:52:06
|
Author: sewardj
Date: 2005-12-27 14:52:02 +0000 (Tue, 27 Dec 2005)
New Revision: 5450
Log:
Merge r5429 (fix for: memcheck/tests/mempool reads freed memory)
Modified:
branches/VALGRIND_3_1_BRANCH/coregrind/m_hashtable.c
Modified: branches/VALGRIND_3_1_BRANCH/coregrind/m_hashtable.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/VALGRIND_3_1_BRANCH/coregrind/m_hashtable.c 2005-12-27 14:46=
:50 UTC (rev 5449)
+++ branches/VALGRIND_3_1_BRANCH/coregrind/m_hashtable.c 2005-12-27 14:52=
:02 UTC (rev 5450)
@@ -234,11 +234,12 @@
=20
void VG_(HT_destruct)(VgHashTable table)
{
- UInt i;
- VgHashNode* node;
+ UInt i;
+ VgHashNode *node, *node_next;
=20
for (i =3D 0; i < table->n_chains; i++) {
- for (node =3D table->chains[i]; node !=3D NULL; node =3D node->nex=
t) {
+ for (node =3D table->chains[i]; node !=3D NULL; node =3D node_next=
) {
+ node_next =3D node->next;
VG_(free)(node);
}
}
|