corrected hash table insert error by malloc'ing the path and token