diff Parser/node.c @ 37557:6ae4adefc573 legacy-trunk

SF patch #1467512, fix double free with triple quoted string in standard build. This was the result of inconsistent use of PyMem_* and PyObject_* allocators. By changing to use PyObject_* allocator almost everywhere, this removes the inconsistency.
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 10 Apr 2006 06:42:25 +0000
parents 57322cb2ca11
children cb3b439c29cc
line wrap: on
line diff
--- a/Parser/node.c	Mon Apr 10 02:17:47 2006 +0000
+++ b/Parser/node.c	Mon Apr 10 06:42:25 2006 +0000
@@ -62,7 +62,7 @@
  * Win98).
  *
  * In a run of compileall across the 2.3a0 Lib directory, Andrew MacIntyre
- * reported that, with this scheme, 89% of PyMem_RESIZE calls in
+ * reported that, with this scheme, 89% of PyObject_REALLOC calls in
  * PyNode_AddChild passed 1 for the size, and 9% passed 4.  So this usually
  * wastes very little memory, but is very effective at sidestepping
  * platform-realloc disasters on vulnernable platforms.