Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dedac52

Browse files
committed
prevent double free in cleanup code (#17968)
1 parent 2adb6fe commit dedac52

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10627,6 +10627,7 @@ posix_listxattr(PyObject *self, PyObject *args, PyObject *kwargs)
1062710627
if (length < 0) {
1062810628
if (errno == ERANGE) {
1062910629
PyMem_FREE(buffer);
10630+
buffer = NULL;
1063010631
continue;
1063110632
}
1063210633
path_error("listxattr", &path);

0 commit comments

Comments
 (0)