Skip to content

Commit

Permalink
Fix missing free of fill_value
Browse files Browse the repository at this point in the history
  • Loading branch information
Ectras committed Feb 1, 2023
1 parent 73e84d6 commit de40a77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/taco_tensor_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ taco_tensor_t* init_taco_tensor_t(int32_t order, int32_t csize,
}

void deinit_taco_tensor_t(taco_tensor_t* t) {
free_mem(t->fill_value);
for (int i = 0; i < t->order; i++) {
free_mem(t->indices[i]);
}
Expand All @@ -76,4 +77,4 @@ void deinit_taco_tensor_t(taco_tensor_t* t) {
free_mem(t->mode_ordering);
free_mem(t->mode_types);
free_mem(t);
}
}

0 comments on commit de40a77

Please sign in to comment.