[3.13] gh-148418: Fix a possible reference leak in a corrupted TYPE_CODE marshal stream (GH-148419) (GH-149364)

(cherry picked from commit c3972f2795)

Co-authored-by: Wulian233 <1055917385@qq.com>
This commit is contained in:
Miss Islington (bot) 2026-05-04 16:06:00 +02:00 committed by GitHub
parent 76e250189f
commit 6d6471b7eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -1487,7 +1487,7 @@ r_object(RFILE *p)
goto code_error;
firstlineno = (int)r_long(p);
if (firstlineno == -1 && PyErr_Occurred())
break;
goto code_error;
linetable = r_object(p);
if (linetable == NULL)
goto code_error;