diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-07-06 22:09:15 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-07-06 22:13:35 +0200 |
commit | 6f8024ef27933d0123aee3d02002ca3600270e72 (patch) | |
tree | fe89505651f156707374cb4b11e2258b19ac8eae /src/lib | |
parent | f797b763dd9fa95d5294f60232babb017b2b495f (diff) | |
download | ouroboros-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.c | 6 |
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); +} |