@@ -70,6 +70,8 @@ common_test_body(size_t nbytes, const DPPLSyclUSMRef Ptr,
70
70
EXPECT_TRUE (DPPLDevice_AreEq (Dev, QueueDev));
71
71
72
72
DPPLQueue_Prefetch (Q, Ptr, nbytes);
73
+ DPPLQueue_Delete (QueueDev);
74
+ DPPLDevice_Delete (Dev);
73
75
}
74
76
75
77
} // end of namespace
@@ -97,6 +99,7 @@ TEST_F(TestDPPLSyclUSMInterface, MallocShared)
97
99
98
100
common_test_body (nbytes, Ptr, Q, " shared" );
99
101
DPPLfree_with_queue (Ptr, Q);
102
+ DPPLQueue_Delete (Q);
100
103
}
101
104
102
105
TEST_F (TestDPPLSyclUSMInterface, MallocDevice)
@@ -112,6 +115,7 @@ TEST_F(TestDPPLSyclUSMInterface, MallocDevice)
112
115
113
116
common_test_body (nbytes, Ptr, Q, " device" );
114
117
DPPLfree_with_queue (Ptr, Q);
118
+ DPPLQueue_Delete (Q);
115
119
}
116
120
117
121
TEST_F (TestDPPLSyclUSMInterface, MallocHost)
@@ -127,6 +131,7 @@ TEST_F(TestDPPLSyclUSMInterface, MallocHost)
127
131
128
132
common_test_body (nbytes, Ptr, Q, " host" );
129
133
DPPLfree_with_queue (Ptr, Q);
134
+ DPPLQueue_Delete (Q);
130
135
}
131
136
132
137
TEST_F (TestDPPLSyclUSMInterface, AlignedAllocShared)
@@ -142,6 +147,7 @@ TEST_F(TestDPPLSyclUSMInterface, AlignedAllocShared)
142
147
143
148
common_test_body (nbytes, Ptr, Q, " shared" );
144
149
DPPLfree_with_queue (Ptr, Q);
150
+ DPPLQueue_Delete (Q);
145
151
}
146
152
147
153
TEST_F (TestDPPLSyclUSMInterface, AlignedAllocDevice)
@@ -157,6 +163,7 @@ TEST_F(TestDPPLSyclUSMInterface, AlignedAllocDevice)
157
163
158
164
common_test_body (nbytes, Ptr, Q, " device" );
159
165
DPPLfree_with_queue (Ptr, Q);
166
+ DPPLQueue_Delete (Q);
160
167
}
161
168
162
169
TEST_F (TestDPPLSyclUSMInterface, AlignedAllocHost)
0 commit comments