~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the gcc warnings in this module (since we now seem to be
[sgt/putty]
/
logging.c
diff --git
a/logging.c
b/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;
}
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;
void log_reconfig(void *handle, Config *cfg)
{
struct LogContext *ctx = (struct LogContext *)handle;