Commit f4829d1
authored
Fix memory leak of it and it2 in void ClientCode()
Adding delete operations at the end of void ClientCode() to free memory allocated by:
Iterator<int, Container<int>> *it = cont.CreateIterator();
Iterator<Data, Container<Data>> *it2 = cont2.CreateIterator();1 parent 561ccc8 commit f4829d1
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
130 | | - | |
| 132 | + | |
0 commit comments