Fixed the last memory leak in hashmap

This should be the last memory leak in the hashmap structure (unless I
overlooked something).