]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
rlm_radius_udp: Explicitly free h on conn close
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 4 Mar 2020 16:08:42 +0000 (10:08 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 4 Mar 2020 22:20:15 +0000 (16:20 -0600)
src/modules/rlm_radius/rlm_radius_udp.c

index c4d0d9c083c0a632da53e334ed6ca3a2733e0629..f6b8d84180f963210555cf5a96b810dc12f03a66 100644 (file)
@@ -536,6 +536,8 @@ static void conn_close(fr_event_list_t *el, void *handle, UNUSED void *uctx)
        h->fd = -1;
 
        DEBUG("%s - Connection closed - %s", h->module_name, h->name);
+
+       talloc_free(h);
 }
 
 /** Connection failed