From e99c8f6716b93b744b8b96a1b934e1b11d91b3de Mon Sep 17 00:00:00 2001 From: keremsahn Date: Mon, 23 Nov 2026 22:21:25 +0300 Subject: [PATCH] Deallocating through reference objects causes double free when there is another object which points to same memory. The part deleted in this PR is an example. --- test/test_datatypes.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/test_datatypes.py b/test/test_datatypes.py index 7e48796..f922c74 100644 --- a/test/test_datatypes.py +++ b/test/test_datatypes.py @@ -2041,9 +2041,6 @@ def test36_legacy_matrix(self): assert ns.destroy_matrix(m, N, M) - m = ns.create_matrix(N, M) - assert ns.destroy_matrix(ns.g_matrix, N, M) - def test37_legacy_matrix_of_structs(self): """Handling of legacy matrix of structs""" @@ -2102,9 +2099,6 @@ def test37_legacy_matrix_of_structs(self): assert ns.destroy_matrix(m, N, M) - m = ns.create_matrix(N, M) - assert ns.destroy_matrix(ns.g_matrix, N, M) - def test38_plain_old_data(self): """Initializer construction of PODs"""