From: Alan T. DeKok Date: Tue, 14 Apr 2020 14:51:18 +0000 (-0400) Subject: remove ev from request_data in talloc destructor X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=353e547b7026ce0d772ef02439eda774d264f019;p=thirdparty%2Ffreeradius-server.git remove ev from request_data in talloc destructor --- diff --git a/src/lib/unlang/module.c b/src/lib/unlang/module.c index d30a2a8bf3b..0a7617bef81 100644 --- a/src/lib/unlang/module.c +++ b/src/lib/unlang/module.c @@ -81,6 +81,8 @@ static void unlang_event_fd_read_handler(UNUSED fr_event_list_t *el, int fd, UNU */ static int _unlang_event_free(unlang_module_event_t *ev) { + if (ev->request) (void) request_data_get(ev->request, ev->ctx, UNLANG_TYPE_MODULE); + if (ev->ev) { (void) fr_event_timer_delete(&(ev->ev)); return 0;