From: Arran Cudbard-Bell Date: Mon, 15 Jun 2015 22:11:46 +0000 (-0400) Subject: Name the talloc pools X-Git-Tag: release_3_0_9~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=998590ef908f8586b09b6a6ffb8b2454aabc84d2;p=thirdparty%2Ffreeradius-server.git Name the talloc pools --- diff --git a/src/lib/debug.c b/src/lib/debug.c index 63afbfd0016..f7ce9fafe0a 100644 --- a/src/lib/debug.c +++ b/src/lib/debug.c @@ -810,7 +810,8 @@ static void _fr_talloc_log(char const *msg) */ int fr_log_talloc_report(TALLOC_CTX *ctx) { - #define TALLOC_REPORT_MAX_DEPTH 20 +#define TALLOC_REPORT_MAX_DEPTH 20 + FILE *log; int fd; diff --git a/src/main/listen.c b/src/main/listen.c index 5815759ebc5..52db4219987 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -1559,6 +1559,7 @@ static int auth_socket_recv(rad_listen_t *listener) FR_STATS_INC(auth, total_packets_dropped); return 0; } + talloc_set_name_const(ctx, "auth_listener_pool"); /* * Now that we've sanity checked everything, receive the @@ -1675,6 +1676,7 @@ static int acct_socket_recv(rad_listen_t *listener) FR_STATS_INC(acct, total_packets_dropped); return 0; } + talloc_set_name_const(ctx, "acct_listener_pool"); /* * Now that we've sanity checked everything, receive the @@ -1941,6 +1943,7 @@ static int coa_socket_recv(rad_listen_t *listener) FR_STATS_INC(coa, total_packets_dropped); return 0; } + talloc_set_name_const(ctx, "coa_socket_recv_pool"); /* * Now that we've sanity checked everything, receive the diff --git a/src/main/process.c b/src/main/process.c index a310ff313db..5619edf6351 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -1664,6 +1664,7 @@ skip_dup: if (!ctx) { ctx = talloc_pool(NULL, main_config.talloc_pool_size); if (!ctx) return 0; + talloc_set_name_const(ctx, "request_receive_pool"); /* * The packet is still allocated from a different diff --git a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c index 3597366c9fb..1dd0d01606d 100644 --- a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c +++ b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c @@ -987,7 +987,7 @@ int eapttls_process(eap_handler_t *handler, tls_session_t *tls_session) } /* - * Allocate a fake REQUEST structe. + * Allocate a fake REQUEST structure. */ fake = request_alloc_fake(request);