Do not try to free NULL hashes.