Christian Heimes
dfaf90da9c
Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases.
2012-09-12 17:58:10 +02:00
Christian Heimes
65a0141e14
Partly revert ad3824a90261 and add comment about reference ownership
2012-09-12 17:52:46 +02:00
Christian Heimes
d8edcb6505
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
2012-09-10 13:16:45 +02:00
Christian Heimes
8c1bce00d2
Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases
2012-09-10 03:08:46 +02:00
Antoine Pitrou
e299cae230
Issue #15340 : Fix importing the random module when /dev/urandom cannot be opened.
...
This was a regression caused by the hash randomization patch.
2012-09-07 23:49:07 +02:00
Antoine Pitrou
58098a77e6
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
...
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 2.7.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 2.7.3 and earlier. However, extension modules
compiled for 2.7.3 and earlier will be loadable by 2.7.4.
2012-09-06 00:59:49 +02:00
Stefan Krah
a8857af37b
Issue #15741 : Fix potential NULL dereference. Found by Coverity.
2012-08-20 17:31:22 +02:00
Antoine Pitrou
c5bef75c77
Issue #15604 : Update uses of PyObject_IsTrue() to check for and handle errors correctly.
...
Patch by Serhiy Storchaka.
2012-08-15 23:16:51 +02:00
Matthias Klose
92636bf243
- Issue #15647 : Make isdir static for windows and posix
2012-08-14 17:42:45 +02:00
Raymond Hettinger
dee8af225b
Fix whitespace
2012-07-20 17:47:59 -07:00
R David Murray
59488d233b
Closes #9254 : backport __import__ docstring/doc mentions of importlib.
...
Patch by Éric Araujo.
2012-07-18 19:44:08 -04:00
Meador Inge
0e3755e58a
remove unused variable
2012-07-18 17:48:34 -05:00
Meador Inge
b8a569065e
Issue #15368 : fixing variable typo.
2012-07-18 16:32:37 -05:00
Meador Inge
6642d1f97d
Issue #15368 : make bytecode generation deterministic.
2012-07-18 14:09:04 -05:00
Martin v. Löwis
ed11a5d018
Issue #8767 : Restore building with --disable-unicode.
...
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00
Antoine Pitrou
284fa08eb7
Issue #14761 : Fix potential leak on an error case in the import machinery.
2012-05-09 13:24:31 +02:00
Gregory P. Smith
a72aa843b6
Fix compiler warning related to issue #14331 . harmless.
2012-04-18 16:41:56 -07:00
Benjamin Peterson
7c0b44ec17
move outside WITH_THREAD conditional
2012-04-13 18:06:36 -04:00
Benjamin Peterson
6688eb536a
take linkage def outside of WITH_THREAD conditional ( closes #14569 )
2012-04-13 11:58:27 -04:00
Benjamin Peterson
b9348e76e4
fix parse_syntax_error to clean up its resources
2012-04-03 00:30:38 -04:00
Kristján Valur Jónsson
50b6778bda
Issue #10538 . Put a reference to the source object in the Py_buffer when
...
converting the old buffer for PyArgs_ParseTuple with *s
2012-03-22 16:35:37 +00:00
Benjamin Peterson
219a05094b
this should technicaly be identifier
2012-03-22 10:39:16 -04:00
Benjamin Peterson
e90cdaa185
check for NULL
2012-03-22 08:56:15 -04:00
Benjamin Peterson
eff19a13ed
check by equality for __future__ not identity ( closes #14378 )
2012-03-22 08:19:04 -04:00
Gregory P. Smith
fcdf04becc
Fixes Issue #14331 : Use significantly less stack space when importing modules by
...
allocating path buffers on the heap instead of the stack.
2012-03-18 16:07:10 -07:00