[Issue 9567] New: Double free error after attempt to insert a duplicate entry