null program

Simple Hash Table Correction

In December I made a post about a simple hash table I had written in C. I got an e-mail from Benoit Rouits ( http://brouits.free.fr/) pointing out a memory leak in ht_destroy() that he found with Valgrind. I had failed to free the main array in the hashtable when it was being destroyed,

free (hashtable->arr);

I added the fix and updated my e-mail address in the source tarball, which is in the same location as before. There are no version numbers involved, so I guess this is version "now" and the old one is version "then", with names subject to change.


Don't stop here! This isn't everything. Check out the archives (on the left) for more posts. Or just have a look at the index.