]> sigrok.org Git - libsigrok.git/blobdiff - src/input/csv.c
Don't check g_free() arguments for NULL.
[libsigrok.git] / src / input / csv.c
index 73e911dff5c62aa3770bcbdba0a17c5ab1cd9aac..f4f11f25d18bd21287745620c3c61b93fce1cb3b 100644 (file)
@@ -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[] = {