diff options
author | colorfulappl <colorfulappl@qq.com> | 2022-12-21 10:03:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 10:03:21 (GMT) |
commit | 591365cd49cf1065e27bb1358aa5f07bd854dd33 (patch) | |
tree | 8fa3c5c55610faea7c3b6d9064365106a5498c0d /Misc/NEWS.d | |
parent | 919045cb73709a3933ec807c09b929c7ad7f02f4 (diff) | |
download | cpython-591365cd49cf1065e27bb1358aa5f07bd854dd33.zip cpython-591365cd49cf1065e27bb1358aa5f07bd854dd33.tar.gz cpython-591365cd49cf1065e27bb1358aa5f07bd854dd33.tar.bz2 |
[3.10] gh-99240: Reset pointer to NULL when the pointed memory is freed in argument parsing (GH-99890) (#100386)
(cherry picked from commit efbb1eb9f54cad4f7bf5df03eed3a6aba02d99f4)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/C API/2022-11-30-16-39-22.gh-issue-99240.67nAX-.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2022-11-30-16-39-22.gh-issue-99240.67nAX-.rst b/Misc/NEWS.d/next/C API/2022-11-30-16-39-22.gh-issue-99240.67nAX-.rst new file mode 100644 index 0000000..9a1bb3c --- /dev/null +++ b/Misc/NEWS.d/next/C API/2022-11-30-16-39-22.gh-issue-99240.67nAX-.rst @@ -0,0 +1,2 @@ +In argument parsing, after deallocating newly allocated memory, reset its +pointer to NULL. |