Skip to content

Commit

Permalink
don't need to free_tab(), that happens in end_set()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Lang committed Sep 17, 2024
1 parent 3dd899e commit 470502a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/field.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,13 +549,8 @@ void end_field(fieldstruct *field)
if (field->set)
{
for (i=0; i<field->nset; i++)
if (field->set[i]) {
if (field->set[i]->imatab) {
free_tab(field->set[i]->imatab);
field->set[i]->imatab = NULL;
}
if (field->set[i])
end_set(field->set[i]);
}
free(field->set);
}
free(field);
Expand Down

0 comments on commit 470502a

Please sign in to comment.