Skip to content

Commit

Permalink
Fix delete.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Feb 9, 2024
1 parent f5ce243 commit 755c4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions export/planloader/planloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ SerializedPlan* load_substrait_plan(const char* filename) {

void free_substrait_plan(SerializedPlan* plan) {
if (plan->buffer) {
delete plan->buffer;
delete[] plan->buffer;
}
if (plan->errorMessage) {
delete plan->errorMessage;
delete[] plan->errorMessage;
}
delete plan;
}
Expand Down

0 comments on commit 755c4ef

Please sign in to comment.