free filename if it is not stored in a hash table