commit 10be83ecbc0665875ac3b8f836fd9b164e52478d
parent 2177967ab1027df692bc2c76d6a5c1c44474cab9
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 14 Feb 2022 16:38:21 +0100
Fix a memory leak in the transitions test
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/test_shitran_transitions.c b/src/test_shitran_transitions.c
@@ -120,6 +120,8 @@ test_load(struct shitran* shitran)
CHK(shitran_transitions_ref_put(NULL) == RES_BAD_ARG);
CHK(shitran_transitions_ref_put(trs) == RES_OK);
CHK(shitran_transitions_ref_put(trs) == RES_OK);
+
+ CHK(fclose(fp) == 0);
}
int