Add the ability to close sessions. This adds *_free() functions to most
[u/mdw/putty] / logging.c
index b8091bf..652eb9d 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -170,6 +170,14 @@ void *log_init(void *frontend, Config *cfg)
     return ctx;
 }
 
+void log_free(void *handle)
+{
+    struct LogContext *ctx = (struct LogContext *)handle;
+
+    logfclose(ctx);
+    sfree(ctx);
+}
+
 void log_reconfig(void *handle, Config *cfg)
 {
     struct LogContext *ctx = (struct LogContext *)handle;