hello, I got a clean bill of health from valgrind before I added the check function. Now valgrind is complaining about a pointer that was freed in unload and was fine before this function which I really don't understand.Here is the code and the valgrind error. Thank you.
arortell@gentoobox ~/Develpoment/Projects/C_Projects/Data_Structures/HashTable $ valgrind --leak-check=full --track-origins=yes ./hashTable
==7877== Memcheck, a memory error detector
==7877== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==7877== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
==7877== Command: ./hashTable
==7877==
==7877== Conditional jump or move depends on uninitialised value(s)
==7877== at 0x4C2C860: strcmp (mc_replace_strmem.c:730)
==7877== by 0x400CA1: check (hashTable.c:179)
==7877== by 0x400EBF: main (main.c:18)
==7877== Uninitialised value was created by a heap allocation
==7877== at 0x4C28730: malloc (vg_replace_malloc.c:291)
==7877== by 0x40090C: load_hash_t (hashTable.c:40)
==7877== by 0x400EB3: main (main.c:16)
==7877==
YESNumber of nodes = (3i)
==7877==
==7877== HEAP SUMMARY:
==7877== in use at exit: 0 bytes in 0 blocks
==7877== total heap usage: 6 allocs, 6 frees, 1,315 bytes allocated
==7877==
==7877== All heap blocks were freed -- no leaks are possible
==7877==
==7877== For counts of detected and suppressed errors, rerun with: -v
==7877== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 1 from 1)