Skip to content

Commit 1ac3c21

Browse files
committed
revert(report): undo conditional freport cleanup
1 parent ca55c86 commit 1ac3c21

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/lib_ccx/params_dump.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,8 @@ void print_file_report(struct lib_ccx_ctx *ctx)
565565
struct lib_cc_decode *dec_ctx = NULL;
566566
struct ccx_demuxer *demux_ctx = ctx->demux_ctx;
567567
const char *report_fmt = ccx_options.report_format;
568-
int is_json = 0;
569568
if (report_fmt && strcasecmp(report_fmt, "json") == 0)
570569
{
571-
is_json = 1;
572570
print_file_report_json(ctx);
573571
goto cleanup;
574572
}
@@ -735,10 +733,7 @@ void print_file_report(struct lib_ccx_ctx *ctx)
735733
}
736734

737735
cleanup:
738-
if (is_json)
739-
{
740736
freep(&ctx->freport.data_from_608);
741737
memset(&ctx->freport, 0, sizeof(struct file_report));
742-
}
743738
#undef Y_N
744739
}

0 commit comments

Comments
 (0)