fixed linked graph memory leak, caused by incorrect bounds in hashtable_free and hashtable_resize