make valgrind happy
[ppastats.git] / src / main.c
index e1f17d5..961c468 100644 (file)
 #include <string.h>
 
 #include "cache.h"
+#include <fcache.h>
 #include "html.h"
 #include "http.h"
-#include "log.h"
 #include "lp_ws.h"
 #include "config.h"
+#include <plog.h>
 #include "ppastats.h"
 
 static const char *program_name;
@@ -203,6 +204,8 @@ int main(int argc, char **argv)
                exit(EXIT_FAILURE);
        }
 
+       log_open("ppastats.log");
+
        owner = argv[optind];
        ppa = argv[optind+1];
 
@@ -217,6 +220,8 @@ int main(int argc, char **argv)
        free(output_dir);
        http_cleanup();
        cache_cleanup();
+       fcache_cleanup();
+       html_cleanup();
 
        exit(EXIT_SUCCESS);
 }