When multiple entries with the same name are encountered, nentry is not properly freed, which results in a memory leak.