Skip to content
Snippets Groups Projects
Commit 11ab6087 authored by Yonggang Luo's avatar Yonggang Luo Committed by Marge Bot
Browse files

util: Fixes memory leak in create_cache_item_header_and_blob


stack-trace by asan
Direct leak of 238 byte(s) in 6 object(s) allocated from:
    #0 0x7f101e1dbe8f in __interceptor_malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:145
    #1 0x55ce3a959e2c in create_cache_item_header_and_blob ../src/util/disk_cache_os.c:647
    #2 0x55ce3a95c217 in disk_cache_write_item_to_disk_foz ../src/util/disk_cache_os.c:967
    #3 0x55ce3a97bce1 in util_queue_thread_func ../src/util/u_queue.c:306
    #4 0x55ce3a989c3b in impl_thrd_routine ../src/c11/impl/threads_posix.c:67
    #5 0x7f101ddc7ea6 in start_thread nptl/pthread_create.c:477

Fixes: 2a9b4ad1 ("util/disk_cache: Add option to disable compression")

Cc: mesa-stable

Signed-off-by: default avatarYonggang Luo <luoyonggang@gmail.com>
Reviewed-by: default avatarEric Engestrom <eric@igalia.com>
Part-of: <mesa/mesa!18024>
parent 44a64a34
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment