]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Free the child's session-state ctx if the state_child_entry_t is freed
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 17 Feb 2021 14:41:10 +0000 (14:41 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 17 Feb 2021 14:41:22 +0000 (14:41 +0000)
src/lib/server/state.c

index c58604a751b43496ff92cd00951c54037bd91cd0..8a23a8c8bab669d2ade8b1aeac7442e60b315a75 100644 (file)
@@ -731,6 +731,7 @@ int fr_request_to_state(fr_state_tree_t *state, request_t *request)
 static int _free_child_data(state_child_entry_t *child_entry)
 {
        fr_dlist_talloc_free(&child_entry->data);
+       talloc_free(child_entry->ctx);          /* Free the child's session_state_ctx if we own it */
 
        return 0;
 }