[pywin32-bugs] [ pywin32-Bugs-1934089 ] swig arg converters leak on error converting args
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-04-04 05:11:54
|
Bugs item #1934089, was opened at 2008-04-04 15:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1934089&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Mark Hammond (mhammond) Assigned to: Mark Hammond (mhammond) Summary: swig arg converters leak on error converting args Initial Comment: Roger noticed that in the generated SWIG code, most converters return NULL, even if other args required cleanup. This can be fixed but (a) it relies on args being initialized and (b) it may cause bloat. Re a), Roger also notes in win32gui will need some work, though. The freearg section for STRING_OR_ATOM_CW checks the result, but HWND doesn't have in initializer. b) can somewhat be mitigated by using "optimize for size" for these files. Both these combined cause too much risk for build 211, so adding the patch here. Note the patch does most of pywintypes.i, but we need to check the others. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1934089&group_id=78018 |