From: Alan T. DeKok Date: Tue, 29 Aug 2017 12:46:21 +0000 (-0400) Subject: set state_ctx so we don't leak X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d31eced0fe46ab05da352847dc0bee465c957e;p=thirdparty%2Ffreeradius-server.git set state_ctx so we don't leak --- diff --git a/src/main/unlang_interpret.c b/src/main/unlang_interpret.c index 6cb7d72ac1a..53eca2630d3 100644 --- a/src/main/unlang_interpret.c +++ b/src/main/unlang_interpret.c @@ -559,6 +559,12 @@ static REQUEST *unlang_child_alloc(REQUEST *request, unlang_t *instruction, rlm_ child->el = request->el; child->server_cs = request->server_cs; + /* + * If this is used, it needs to be freed when the child + * is freed. + */ + child->state_ctx = child; + /* * Initialize all of the async fields. */