[Python-checkins] python/nondist/sandbox/datetime obj_date.c,1.47,1.48 obj_datetime.c,1.45,1.46

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Thu, 12 Dec 2002 10:48:04 -0800


Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv20387

Modified Files:
	obj_date.c obj_datetime.c 
Log Message:
Fixed the new leak in the C tests -- I introduced it when adding more
error checks to the date and datetime pickle/unpickle code.


Index: obj_date.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_date.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** obj_date.c	12 Dec 2002 17:58:28 -0000	1.47
--- obj_date.c	12 Dec 2002 18:48:01 -0000	1.48
***************
*** 472,475 ****
--- 472,476 ----
  			return NULL;
  		}
+ 		Py_DECREF(res);
  	}
  	return (PyObject *)self;

Index: obj_datetime.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_datetime.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** obj_datetime.c	12 Dec 2002 17:58:28 -0000	1.45
--- obj_datetime.c	12 Dec 2002 18:48:01 -0000	1.46
***************
*** 589,592 ****
--- 589,593 ----
  			return NULL;
  		}
+ 		Py_DECREF(res);
  	}
  	return (PyObject *)self;