mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-24 00:18:39 +00:00
[csv iterate] rid double strdup
This commit is contained in:
parent
84858d27ef
commit
81af569cb4
1 changed files with 1 additions and 1 deletions
|
|
@ -233,7 +233,7 @@ static lrec_t* paste_header_and_data(lrec_reader_stdio_csv_state_t* pstate, slls
|
|||
sllse_t* pd = pdata_fields->phead;
|
||||
for ( ; ph != NULL && pd != NULL; ph = ph->pnext, pd = pd->pnext) {
|
||||
// for performance, xxx reduce the copies here
|
||||
lrec_put(prec, ph->value, strdup(pd->value), LREC_FREE_ENTRY_VALUE);
|
||||
lrec_put_no_free(prec, ph->value, pd->value);
|
||||
}
|
||||
return prec;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue