[Issue 10384] str2entry2() leaks attributes on error