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

Skip to content

Commit eabfd72

Browse files
Diego Novillotacaswell
Diego Novillo
authored andcommitted
FIX : fix mis-matched new/delete in CXX
The problem here is that the constructor for ExtensionClassMethodsTable() is allocating an array of m_methods_table, so it should be deallocated with delete[].
1 parent a5b48e7 commit eabfd72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extern/CXX/Python2/ExtensionType.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ namespace Py
125125

126126
~ExtensionClassMethodsTable()
127127
{
128-
delete m_methods_table;
128+
delete[] m_methods_table;
129129
}
130130

131131
// check that all methods added are unique

0 commit comments

Comments
 (0)