[mpi_enc_test][mpi_dec_test]: close slt verify file

Change-Id: Id303202846e9e415b0837e73115ce3c93503e608
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
This commit is contained in:
Hongjin Li
2022-04-25 16:10:47 +08:00
parent 0b949f4b8c
commit 9d9aeba533
3 changed files with 13 additions and 0 deletions

View File

@@ -721,6 +721,11 @@ MPP_TEST_OUT:
data.fp_output = NULL;
}
if (data.fp_verify) {
fclose(data.fp_verify);
data.fp_verify = NULL;
}
if (cfg) {
mpp_dec_cfg_deinit(cfg);
cfg = NULL;

View File

@@ -282,6 +282,10 @@ MPP_RET mt_test_ctx_deinit(MpiEncMtCtxInfo *info)
fclose(p->fp_output);
p->fp_output = NULL;
}
if (p->fp_verify) {
fclose(p->fp_verify);
p->fp_verify = NULL;
}
return MPP_OK;
}

View File

@@ -270,6 +270,10 @@ MPP_RET test_ctx_deinit(MpiEncTestData *p)
fclose(p->fp_output);
p->fp_output = NULL;
}
if (p->fp_verify) {
fclose(p->fp_verify);
p->fp_verify = NULL;
}
}
return MPP_OK;
}