]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't double free status_u
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 1 Oct 2017 12:06:48 +0000 (20:06 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 1 Oct 2017 13:28:25 +0000 (21:28 +0800)
Already freed by talloc_free_children

src/modules/rlm_radius/rlm_radius_udp.c

index 72e80a1f318d6ba9f4d3d4ac45d161e076b2b143..fde694959891250a234d55410a530fae0fc247fc 100644 (file)
@@ -1783,15 +1783,6 @@ static int _conn_free(rlm_radius_udp_connection_t *c)
 
        talloc_free_children(c); /* clears out FD events, timers, etc. */
 
-       /*
-        *      Status-Server checks remain with this connection, and
-        *      don't get sent back to the main thread queue.
-        */
-       if (c->status_u) {
-               talloc_free(c->status_u);
-               c->status_u = NULL;
-       }
-
        /*
         *      Move "sent" packets back to the main thread queue
         */