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

Skip to content

Commit 06403cf

Browse files
committed
decref correct object
1 parent 4bb867d commit 06403cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6194,7 +6194,7 @@ posix_unsetenv(PyObject *self, PyObject *args)
61946194

61956195
err = unsetenv(s1);
61966196
if (err) {
6197-
Py_DECREF(s1);
6197+
Py_DECREF(os1);
61986198
return posix_error();
61996199
}
62006200

0 commit comments

Comments
 (0)