Skip to content
Snippets Groups Projects
Commit 4a4d9817 authored by Rafael Ravedutti's avatar Rafael Ravedutti
Browse files

Delete pairs structure before ending program

parent 5fcd1e2f
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,7 @@ class CGen: ...@@ -93,6 +93,7 @@ class CGen:
self.print("int main(int argc, char **argv) {") self.print("int main(int argc, char **argv) {")
self.print(f" PairsSimulation *pairs = new PairsSimulation({nprops}, {narrays}, DimRanges);") self.print(f" PairsSimulation *pairs = new PairsSimulation({nprops}, {narrays}, DimRanges);")
self.generate_statement(module.block) self.generate_statement(module.block)
self.print(" delete pairs;")
self.print(" return 0;") self.print(" return 0;")
self.print("}") self.print("}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment