Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read-cache: two small leak fixes #1801

Closed
wants to merge 1 commit into from

Commits on Oct 1, 2024

  1. read-cache: free threaded memory pool

    In load_cache_entries_threaded(), each thread allocates its own memory
    pool. This pool needs to be cleaned up while closing the threads down,
    or it will be leaked.
    
    This ce_mem_pool pointer could theoretically be converted to an inline
    copy of the struct, but the use of a pointer helps with existing lazy-
    initialization logic. Adjusting that behavior only to avoid this pointer
    would be a much bigger change.
    
    Signed-off-by: Derrick Stolee <stolee@gmail.com>
    derrickstolee committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    220a098 View commit details
    Browse the repository at this point in the history