diff --git a/test/mpi_dec_test.c b/test/mpi_dec_test.c index db54aa9a..d2052091 100644 --- a/test/mpi_dec_test.c +++ b/test/mpi_dec_test.c @@ -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; diff --git a/test/mpi_enc_mt_test.cpp b/test/mpi_enc_mt_test.cpp index cf74398e..cbd15450 100644 --- a/test/mpi_enc_mt_test.cpp +++ b/test/mpi_enc_mt_test.cpp @@ -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; } diff --git a/test/mpi_enc_test.c b/test/mpi_enc_test.c index 33bda035..001cb441 100644 --- a/test/mpi_enc_test.c +++ b/test/mpi_enc_test.c @@ -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; }