Skip to content
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