X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/c229ef97dfba4dee7d2fc0a098e0343dc87dc004..47489d8daef971352cfb1ec30c998ed7b048c97c:/logging.c diff --git a/logging.c b/logging.c index c4b43558..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; @@ -182,12 +190,12 @@ void log_reconfig(void *handle, Config *cfg) reset_logging = FALSE; if (reset_logging) - logfclose(logctx); + logfclose(ctx); ctx->cfg = *cfg; /* STRUCTURE COPY */ if (reset_logging) - logfopen(logctx); + logfopen(ctx); } /*