This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexeychen
Recipients alanmcintyre, alexeychen, brett.cannon, complex, pythonmeister
Date 2007-09-16.15:11:23
SpamBayes Score 0.15254433
Marked as misclassified No
Message-id <1189955484.22.0.840601920575.issue1134@psf.upfronthosting.co.za>
In-reply-to
Content
Oops, i see there are two bugs. Previously i have fixed multiline
strings only.

I think it will be:

Index: tokenizer.c
===================================================================
--- tokenizer.c	(revision 58161)
+++ tokenizer.c	(working copy)
@@ -395,6 +395,7 @@
 			goto error;
 		buflen = size;
 	}
+
 	memcpy(s, buf, buflen);
 	s[buflen] = '\0';
 	if (buflen == 0) /* EOF */
@@ -402,6 +403,12 @@
 	if (allocated) {
 		Py_DECREF(bufobj);
 	}
+
+  if ( bufobj == tok->decoding_buffer ){
+    Py_XDECREF(tok->decoding_buffer);
+    tok->decoding_buffer = 0;
+  }
+
 	return s;
 
 error:
History
Date User Action Args
2007-09-16 15:11:24alexeychensetspambayes_score: 0.152544 -> 0.15254433
recipients: + alexeychen, brett.cannon, complex, alanmcintyre, pythonmeister
2007-09-16 15:11:24alexeychensetspambayes_score: 0.152544 -> 0.152544
messageid: <1189955484.22.0.840601920575.issue1134@psf.upfronthosting.co.za>
2007-09-16 15:11:24alexeychenlinkissue1134 messages
2007-09-16 15:11:23alexeychencreate