librb/event: Don't leak event names on completion

This commit is contained in:
Ed Kellett 2020-04-19 14:22:18 +01:00
parent 2c11ccb99e
commit ad516b7d47
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -250,6 +250,7 @@ rb_event_run(void)
else else
{ {
rb_dlinkDelete(&ev->node, &event_list); rb_dlinkDelete(&ev->node, &event_list);
rb_free(ev->name);
rb_free(ev); rb_free(ev);
} }
} }