Skip to content

Commit

Permalink
Fix alloc dealloc mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
psampathkumar authored and lmoureaux committed Jun 26, 2022
1 parent 0870749 commit d0841cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/reqtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d0841cb

Please sign in to comment.