aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-05-06 19:16:28 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-05-06 19:16:28 +0200
commitd8caac0ff07f1d5c8ee239bd1c1542107fe32a20 (patch)
treeaa437ec1866e982f188c9372865cfaf904ab255b
parent64efa3fd8c29fb8a572740ba010f5b51d013c8a0 (diff)
downloadembedlog-d8caac0ff07f1d5c8ee239bd1c1542107fe32a20.tar.gz
embedlog-d8caac0ff07f1d5c8ee239bd1c1542107fe32a20.tar.bz2
embedlog-d8caac0ff07f1d5c8ee239bd1c1542107fe32a20.zip
fix: missing el_cleanup in tests causing memory leakv0.3.0
-rw-r--r--tst/test-el-file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tst/test-el-file.c b/tst/test-el-file.c
index 28e1597..4a33860 100644
--- a/tst/test-el-file.c
+++ b/tst/test-el-file.c
@@ -982,6 +982,7 @@ static void file_rotate_directory_deleted(void)
mt_ferr(el_puts("rfv"), ENOENT);
mkdir(WORKDIR, 0755);
+ el_cleanup();
}
@@ -1027,6 +1028,7 @@ static void file_rotate_directory_reappear_after_delete(void)
unlink(WORKDIR"/log.2");
unlink(WORKDIR"/log.3");
unlink(WORKDIR"/log.4");
+ el_cleanup();
}