changeset 515:d512555bdd0f

Close written test config file before trying to read it.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 26 Dec 2019 13:02:25 +0200
parents db3fc3d4969e
children cfd536d654a6
files tests.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests.c	Thu Dec 26 09:45:41 2019 +0200
+++ b/tests.c	Thu Dec 26 13:02:25 2019 +0200
@@ -496,6 +496,8 @@
     }
 
     th_cfg_write(fh, cfg);
+    th_io_free(fh);
+    fh = NULL;
 
     // Test against written configuration file
     test_config_read(cfg, filename);