Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure create_table sets allocation mode #5953

Merged
merged 13 commits into from
Nov 9, 2021
2 changes: 2 additions & 0 deletions src/gmt_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -3203,6 +3203,7 @@ GMT_LOCAL struct GMT_DATATABLE *gmtio_alloc_table (struct GMT_CTRL *GMT, struct
T->n_records += nr;
if (Tin->segment[seg]->label) T->segment[seg]->label = strdup (Tin->segment[seg]->label);
}
TH->alloc_mode = GMT_ALLOC_INTERNALLY;
return (T);
}

Expand Down Expand Up @@ -7795,6 +7796,7 @@ struct GMT_DATATABLE * gmt_create_table (struct GMT_CTRL *GMT, uint64_t n_segmen
if (alloc_only) T->segment[seg]->n_rows = 0;
}
}
TH->alloc_mode = GMT_ALLOC_INTERNALLY;

return (T);
}
Expand Down