Valgrind seems to complain with my unload() function, in particular the cursor:
bool unload(void)
{
node *cursor;
for (int l = 0; l < 27; l++)
{
if (hashtable[l])
{
cursor = hashtable[l];
while (cursor)
{
node *temp = cursor;
cursor = cursor->next;
free(temp);
}
}
}
return true;
}
Valgrind outputs: Conditional jump or move depends on uninitialized value, and then points out to "while (cursor)".