Ticket #4142: fix-memory-error.diff
| File fix-memory-error.diff, 507 bytes (added by spiv, 3 years ago) |
|---|
-
twisted/protocols/_c_urlarg.c
=== modified file 'twisted/protocols/_c_urlarg.c'
47 47 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#|c:unquote", kwlist, &s, &length, &escchar)) { 48 48 return NULL; 49 49 } 50 if (length == 0) { 51 return PyString_FromStringAndSize("", 0); 52 } 50 53 /* output = cStringIO() */ 51 54 output = PycStringIO->NewOutput(length); 52 55 if (output == NULL) {
