aboutsummaryrefslogtreecommitdiff
path: root/src/regex/test_regex_graph_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/test_regex_graph_api.c')
-rw-r--r--src/regex/test_regex_graph_api.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/regex/test_regex_graph_api.c b/src/regex/test_regex_graph_api.c
index 0f1b72b614..9e8e1fb165 100644
--- a/src/regex/test_regex_graph_api.c
+++ b/src/regex/test_regex_graph_api.c
@@ -27,6 +27,8 @@
#include "platform.h"
#include "gnunet_regex_lib.h"
+#define KEEP_FILES 0
+
/**
* Check if 'filename' exists and is not empty.
*
@@ -57,6 +59,11 @@ filecheck (const char *filename)
error++;
}
+ error += fclose (fp);
+
+ if (!KEEP_FILES)
+ unlink (filename);
+
return error;
}