Backport rev. 51798 from trunk:
fix setobject.c refcounts and error checks.
1 file changed