| 374 | |
| 375 | |
| 376 | void cpu_deallocMatrixList(qcomp*** matrices, qindex numRows, int numMatrices) { |
| 377 | |
| 378 | // free everything that allocated (but permit anything to have failed) |
| 379 | if (matrices != nullptr) |
| 380 | for (int n=0; n<numMatrices; n++) |
| 381 | cpu_deallocMatrix(matrices[n], numRows); |
| 382 | |
| 383 | // legal to free nullptr |
| 384 | free(matrices); |
| 385 | } |
| 386 | |
| 387 | |
| 388 | int* cpu_allocHeapFlag() { |
no test coverage detected