Skip to content

Commit

Permalink
valgrind findings
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Jun 13, 2017
1 parent 726b849 commit d09de40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions c/input/lrec_reader_stdio_csv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d09de40

Please sign in to comment.