summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-07 06:27:34 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-06-07 06:27:34 -0700
commit8534d4641187f4f730ca63c707b3b433fae75a04 (patch)
tree1e03d41ca2e48d05e61c2cce99a0f65edf6f8dd5
parent4e29f984c04e9d504d3221284361fc38bfa8eb6e (diff)
downloadtxr-8534d4641187f4f730ca63c707b3b433fae75a04.tar.gz
txr-8534d4641187f4f730ca63c707b3b433fae75a04.tar.bz2
txr-8534d4641187f4f730ca63c707b3b433fae75a04.zip
Fix syslog stream leak.
This one is minor because there is only one syslog stream. * syslog.c (syslog_strm_ops): Use cobj_destroy_free_op rather than cobj_destroy_stub_op.
-rw-r--r--syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syslog.c b/syslog.c
index e0242729..044649d3 100644
--- a/syslog.c
+++ b/syslog.c
@@ -222,7 +222,7 @@ static val syslog_set_prop(val stream, val ind, val prop)
static_def(struct strm_ops syslog_strm_ops =
strm_ops_init(cobj_ops_init(eq,
stream_print_op,
- cobj_destroy_stub_op,
+ cobj_destroy_free_op,
syslog_mark,
cobj_hash_op),
wli("syslog-stream"),