From 1d3932455647d7d511e61735bd85540accbc6395 Mon Sep 17 00:00:00 2001 From: Keith Buck Date: Sun, 2 Mar 2014 22:05:30 +0000 Subject: [PATCH] Fix a couple more string leaks. --- libratbox/src/event.c | 4 +--- src/ircd_parser.y | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libratbox/src/event.c b/libratbox/src/event.c index 527a8e26..226bca0a 100644 --- a/libratbox/src/event.c +++ b/libratbox/src/event.c @@ -191,9 +191,7 @@ rb_run_event(struct ev_entry *ev) ev->func(ev->arg); if(!ev->frequency) { - rb_io_unsched_event(ev); - rb_dlinkDelete(&ev->node, &event_list); - rb_free(ev); + rb_event_delete(ev); return; } ev->when = rb_current_time() + ev->frequency; diff --git a/src/ircd_parser.y b/src/ircd_parser.y index aeb9bdd1..e8df7653 100644 --- a/src/ircd_parser.y +++ b/src/ircd_parser.y @@ -299,6 +299,8 @@ loadmodule: if (findmodule_byname(m_bn) == -1) load_one_module($2, 0); + + rb_free(m_bn); #endif } ';'