fix: remove memory leak (#2532)

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
This commit is contained in:
Piotr Idzik
2024-08-30 20:05:30 +02:00
committed by GitHub
parent 435f1eded4
commit 9e44b68070

View File

@@ -69,6 +69,11 @@ void librarySort(int *index, int n) {
index_pos_for_output++;
}
}
delete[] numbered;
delete[] gaps;
for (int i = 0; i < 2; ++i) {
delete[] library[i];
}
}
int main() {