diff --git a/client/reqtree.cpp b/client/reqtree.cpp index 210e3a6e1a..0058631979 100644 --- a/client/reqtree.cpp +++ b/client/reqtree.cpp @@ -433,7 +433,7 @@ void destroy_reqtree(struct reqtree *tree) for (i = 0; i < tree->num_nodes; i++) { free(tree->nodes[i]->require); free(tree->nodes[i]->provide); - delete[] tree->nodes[i]; + delete tree->nodes[i]; } delete[] tree->nodes; if (tree->layers) {