Fix a couple more string leaks.

This commit is contained in:
Keith Buck 2014-03-02 22:05:30 +00:00
parent ee2d4c2d9d
commit 1d39324556
2 changed files with 3 additions and 3 deletions

View file

@ -191,9 +191,7 @@ rb_run_event(struct ev_entry *ev)
ev->func(ev->arg); ev->func(ev->arg);
if(!ev->frequency) if(!ev->frequency)
{ {
rb_io_unsched_event(ev); rb_event_delete(ev);
rb_dlinkDelete(&ev->node, &event_list);
rb_free(ev);
return; return;
} }
ev->when = rb_current_time() + ev->frequency; ev->when = rb_current_time() + ev->frequency;

View file

@ -299,6 +299,8 @@ loadmodule:
if (findmodule_byname(m_bn) == -1) if (findmodule_byname(m_bn) == -1)
load_one_module($2, 0); load_one_module($2, 0);
rb_free(m_bn);
#endif #endif
} }
';' ';'