Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 35667:6c3d0a0c1956 2.4
Backported:
Fix segfault with invalid coding.
(See SF bug: 772896 for another fix)
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sun, 02 Oct 2005 01:51:56 +0000 |
| parents | 37fa7b6dca9b |
| children | bc4fbbb2db30 |
comparison
equal
deleted
inserted
replaced
| 35664:0be00775a80c | 35667:6c3d0a0c1956 |
|---|---|
| 1482 } | 1482 } |
| 1483 if (msg == NULL) | 1483 if (msg == NULL) |
| 1484 msg = "unknown decode error"; | 1484 msg = "unknown decode error"; |
| 1485 Py_DECREF(type); | 1485 Py_DECREF(type); |
| 1486 Py_DECREF(value); | 1486 Py_DECREF(value); |
| 1487 Py_DECREF(tb); | 1487 Py_XDECREF(tb); |
| 1488 break; | 1488 break; |
| 1489 } | 1489 } |
| 1490 default: | 1490 default: |
| 1491 fprintf(stderr, "error=%d\n", err->error); | 1491 fprintf(stderr, "error=%d\n", err->error); |
| 1492 msg = "unknown parsing error"; | 1492 msg = "unknown parsing error"; |
