summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-07-06 22:09:15 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-07-06 22:13:35 +0200
commit6f8024ef27933d0123aee3d02002ca3600270e72 (patch)
treefe89505651f156707374cb4b11e2258b19ac8eae /src/lib
parentf797b763dd9fa95d5294f60232babb017b2b495f (diff)
downloadouroboros-6f8024ef27933d0123aee3d02002ca3600270e72.tar.gz
ouroboros-6f8024ef27933d0123aee3d02002ca3600270e72.zip
lib:irmd: Fix logs and irm_create
The irm_create() function called irmd_destroy before some key values were initialized. Logs cleanup was missing.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/logs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/logs.c b/src/lib/logs.c
index d86073e4..eed1ee10 100644
--- a/src/lib/logs.c
+++ b/src/lib/logs.c
@@ -34,3 +34,9 @@ int set_logfile(char * filename)
return 0;
}
+
+void close_logfile()
+{
+ if (logfile != NULL)
+ fclose(logfile);
+}