Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > Hash_impl
changeset 28:18a72865dd78 MC_shared
marked TODO: doubleTableSize corrupts mem
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 06 Mar 2013 14:35:01 +0100 |
| parents | f82bd67d93fa |
| children | bd376656f8ab |
| files | PrivateHash.c |
| diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/PrivateHash.c Mon Oct 29 16:46:11 2012 +0100 1.2 +++ b/PrivateHash.c Wed Mar 06 14:35:01 2013 +0100 1.3 @@ -43,7 +43,9 @@ 1.4 1.5 void 1.6 doubleTableSize( HashTable *table ) 1.7 - { int i, oldTableSz, newTableSz; 1.8 + { printf("***This code is broken; program will probably segfault soon***\n"); 1.9 + 1.10 + int i, oldTableSz, newTableSz; 1.11 HashEntry *entry, *nextEntry, **oldEntries, **newEntries; 1.12 1.13 oldTableSz = table->tableSz; 1.14 @@ -252,6 +254,8 @@ 1.15 } 1.16 } 1.17 } 1.18 + VMS_WL__free( entries ); 1.19 + VMS_WL__free( table ); 1.20 } 1.21 1.22 void
