X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/1adaeb2ee2c574fa3d06cf14f4aad0b6192a0aea..fabd1805a8f429ca83b4271aabd1206ac3537ebb:/logging.c diff --git a/logging.c b/logging.c index b8091bfd..652eb9df 100644 --- 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;