Skip to content

Commit 63b2381

Browse files
committed
fix smt.c memory leak
1 parent dd1dd10 commit 63b2381

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mlir/test/CAPI/smt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ void testExportSMTLIB(MlirContext ctx) {
4141

4242
// CHECK: ; solver scope 0
4343
// CHECK-NEXT: (reset)
44+
mlirModuleDestroy(module);
4445
}
4546

4647
void testSMTType(MlirContext ctx) {
@@ -178,5 +179,8 @@ int main(void) {
178179
testExportSMTLIB(ctx);
179180
testSMTType(ctx);
180181
testSMTAttribute(ctx);
182+
183+
mlirContextDestroy(ctx);
184+
181185
return 0;
182186
}

0 commit comments

Comments
 (0)