X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fcsv.c;h=cc09045aa281919a88580e681149724c7519300f;hb=aff94d065e3ef50fa022b3e79b0dc435ae2c5b0a;hp=0e68e39156f884eb20d2dd14bbead33c1f724b84;hpb=329733d92c5004f0fe308eff26b9537fded2cdf3;p=libsigrok.git diff --git a/src/input/csv.c b/src/input/csv.c index 0e68e391..cc09045a 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -20,7 +20,7 @@ #include #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "input/csv" @@ -351,7 +351,7 @@ static int parse_single_column(const char *column, struct context *inc) res = SR_ERR; - switch(inc->format) { + switch (inc->format) { case FORMAT_BIN: res = parse_binstr(column, inc); break; @@ -777,11 +777,8 @@ static void cleanup(struct sr_input *in) if (inc->comment) g_string_free(inc->comment, TRUE); - if (inc->termination) - g_free(inc->termination); - - if (inc->sample_buffer) - g_free(inc->sample_buffer); + g_free(inc->termination); + g_free(inc->sample_buffer); } static struct sr_option options[] = {