[Issue 10384] New: str2entry2() leaks attributes on error