X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=session.c;h=130eed5a751cb9fe16f1e4f0d737fbec829fef2c;hp=82fea5574eaf0db878a7aed30bbdc2384f86abb5;hb=6fdcc67df1da2edc38ea16bf2f17950ba4a0161e;hpb=2be182e6437fb082aedca653fdc106d702518db0 diff --git a/session.c b/session.c index 82fea55..130eed5 100644 --- a/session.c +++ b/session.c @@ -17,14 +17,10 @@ * along with this program. If not, see . */ +#include "sigrok-cli.h" #include "config.h" #include #include -#include -#ifdef HAVE_SRD -#include /* First, so we avoid a _POSIX_C_SOURCE warning. */ -#endif -#include "sigrok-cli.h" static struct sr_output_format *output_format = NULL; static int default_output_format = FALSE; @@ -440,7 +436,7 @@ void datafeed_in(const struct sr_dev_inst *sdi, if (sr_session_save(opt_output_file, sdi, savebuf->data, unitsize, savebuf->len / unitsize) != SR_OK) g_critical("Failed to save session."); - g_byte_array_free(savebuf, FALSE); + g_byte_array_free(savebuf, TRUE); } }