mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 10:15:36 +00:00
valgrind findings
This commit is contained in:
parent
726b84991d
commit
d09de40b75
1 changed files with 2 additions and 0 deletions
|
|
@ -213,6 +213,8 @@ static lrec_t* lrec_reader_stdio_csv_process(void* pvstate, void* pvhandle, cont
|
|||
if (string_starts_with(pe->value, "\xef\xbb\xbf")) {
|
||||
// Strip UTF-8 BOM if any
|
||||
slls_append(pheader_fields, mlr_strdup_or_die(&pe->value[3]), FREE_ENTRY_VALUE);
|
||||
if (pe->free_flag & FREE_ENTRY_VALUE)
|
||||
free(pe->value);
|
||||
} else {
|
||||
slls_append(pheader_fields, pe->value, pe->free_flag);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue