Skip to content

Commit 684eb14

Browse files
authored
Fix leaks in new tests (#28435)
Fixes memory leaks in new tests [Reviewed by @dlongnecke-cray]
2 parents 041e8ed + 1a170d7 commit 684eb14

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

test/llvm/debugInfo/lldb/lists.chpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ proc main() {
5959
writeln("Class List: ", myClassList);
6060
breakpoint;
6161
writeln("Class List Again: ", myClassList);
62+
for x in myClassList do delete x;
6263
}
6364

6465

test/llvm/debugInfo/lldb/maps.chpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ proc main() {
5757
writeln("Class Map: ", myClassMap);
5858
breakpoint;
5959
writeln("Class Map Again: ", myClassMap);
60+
for x in myClassMap.values() do delete x;
6061
}
6162

6263

test/llvm/debugInfo/lldb/sets.chpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ proc main() {
5858
writeln("Class Set: ", myClassSet);
5959
breakpoint;
6060
writeln("Class Set Again: ", myClassSet);
61+
for x in myClassSet do delete x;
6162
}
6263

6364

0 commit comments

Comments
 (0)