I'm having trouble figuring out where I need to free the malloc'ed code- Here is what I have for both load and unload. Everything else seems to have been freed except for two things, and everything I try to do to free them doesn't work and creates more errors.
[code hidden per academic honesty guidelines]
and here is what I'm getting from Valgrind:
HEAP SUMMARY:
==3458== in use at exit: 62 bytes in 2 blocks
==3458== total heap usage: 286,187 allocs, 286,185 frees, 8,873,096 bytes allocated
==3458==
==3458== Searching for pointers to 2 not-freed blocks
==3458== Checked 78,624 bytes
==3458==
==3458== 16 bytes in 1 blocks are still reachable in loss record 1 of 2
==3458== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3458== by 0x40148F: load (dictionary.c:99)
==3458== by 0x400A7D: main (speller.c:45)
==3458==
==3458== 46 bytes in 1 blocks are still reachable in loss record 2 of 2
==3458== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3458== by 0x4014DD: load (dictionary.c:107)
==3458== by 0x400A7D: main (speller.c:45)
==3458==
==3458== LEAK SUMMARY:
==3458== definitely lost: 0 bytes in 0 blocks
==3458== indirectly lost: 0 bytes in 0 blocks
==3458== possibly lost: 0 bytes in 0 blocks
==3458== still reachable: 62 bytes in 2 blocks
==3458== suppressed: 0 bytes in 0 blocks
==3458==
==3458== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==3458== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)