Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c3faf14

Browse filesBrowse files
ngoldbaumcharris
authored andcommitted
BUG: fix use-after-free error in npy_hashtable.cpp (numpy#27955)
1 parent bc0030d commit c3faf14
Copy full SHA for c3faf14

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎numpy/_core/src/common/npy_hashtable.cpp

Copy file name to clipboardExpand all lines: numpy/_core/src/common/npy_hashtable.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ NPY_NO_EXPORT void
126126
PyArrayIdentityHash_Dealloc(PyArrayIdentityHash *tb)
127127
{
128128
PyMem_Free(tb->buckets);
129-
PyMem_Free(tb);
130129
#ifdef Py_GIL_DISABLED
131130
delete (std::shared_mutex *)tb->mutex;
132131
#endif
132+
PyMem_Free(tb);
133133
}
134134

135135

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.