Free old data when inserting new entry with existing key