[Patches] [ python-Patches-654974 ] fix unchecked return values in structseq

noreply@sourceforge.net noreply@sourceforge.net
Tue, 17 Dec 2002 15:44:48 -0800


Patches item #654974, was opened at 2002-12-17 03:17
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=654974&group_id=5470

Category: Core (C code)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix unchecked return values in structseq

Initial Comment:
There are several unchecked return values from
PyMem_*(), etc.  This patch provides checks for those
conditions.  It also changes a PyInt_FromLong(1) to
Py_True.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-12-18 00:44

Message:
Logged In: YES 
user_id=21627

On the second chunk: Why are you not deallocating tup and
dict if the buildvalue failed?

On releasing tp_members: Why is this necessary? It seems
safe to assert that these fields are always NULL.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2002-12-17 14:15

Message:
Logged In: YES 
user_id=33168

Sorry about that, I had all kinds of problems yesterday
attaching.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2002-12-17 13:43

Message:
Logged In: YES 
user_id=6656

SF has won this round, I'm afraid.

Try to attach again?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=654974&group_id=5470