| commit | dedac52731bd4085a71c0010454c9804b15be80f | [log] [tgz] |
|---|---|---|
| author | Benjamin Peterson <benjamin@python.org> | Mon May 13 19:55:40 2013 -0500 |
| committer | Benjamin Peterson <benjamin@python.org> | Mon May 13 19:55:40 2013 -0500 |
| tree | 79bc207ed84cba5794bdc4c44048b1ca3347c639 | |
| parent | 2adb6fe246c0e07b30a70cd5c08e4aebc5b2923d [diff] |
prevent double free in cleanup code (#17968)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 3e5e580..a351cae 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -10627,6 +10627,7 @@ if (length < 0) { if (errno == ERANGE) { PyMem_FREE(buffer); + buffer = NULL; continue; } path_error("listxattr", &path);