Skip to content

Commit

Permalink
utils: enable talloc null tracking
Browse files Browse the repository at this point in the history
With this patch talloc_enable_null_tracking() is called during
`server_setup()` to make talloc memory usage reports more useful.
  • Loading branch information
sumit-bose committed Oct 11, 2023
1 parent ad9bf1b commit 25f77ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,8 @@ int server_setup(const char *name, bool is_responder,
sss_chain_id_set_format(DEBUG_CHAIN_ID_FMT_RID);
}

talloc_enable_null_tracking();

autofree_ctx = talloc_named_const(NULL, 0, "autofree_context");
if (autofree_ctx == NULL) {
return ENOMEM;
Expand Down

0 comments on commit 25f77ee

Please sign in to comment.