commit | 51e3e450fbed46198d9be92add1a5dee6a1f7f41 | [log] [tgz] |
---|---|---|
author | Alexander Riccio <test35965@gmail.com> | Mon Mar 30 17:15:59 2020 -0400 |
committer | GitHub <noreply@github.com> | Mon Mar 30 23:15:59 2020 +0200 |
tree | 14d0f753604a99b7759994a7f0c61da61abedc94 | |
parent | fc2d8d62af25be90f5fd490df141a775d9619b23 [diff] |
bpo-40020: Fix realloc leak on failure in growable_comment_array_add (GH-19083) Fix a leak and subsequent crash in parsetok.c caused by realloc misuse on a rare codepath. Realloc returns a null pointer on failure, and then growable_comment_array_deallocate crashes later when it dereferences it.