8000 really fix memory leak · Z80coder/datalog-cpp@2e1e780 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e1e780

Browse files
committed
really fix memory leak
1 parent b56608b commit 2e1e780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tuple_binding_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ bool unbindTest()
1818
bool leakTest() {
1919
double* leak = new double[10];
2020
std::cout << "Hello!" << std::endl;
21-
delete leak;
21+
delete[] leak;
2222
return true;
2323
}
2424

0 commit comments

Comments
 (0)
0