[csv iterate] rid double strdup

This commit is contained in:
John Kerl 2015-08-26 21:57:09 -04:00
parent 84858d27ef
commit 81af569cb4

View file

@ -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;
}