driver_configs never deallocated
Submitted by Caolán McNamara
Assigned to mes..@..op.org
Description
Created attachment 19010 half-hearted demo patch which makes valgrind shutup
in src/glx/x11/drisw_glx.c
const __DRIconfig **driver_configs;
psc->swrast->createNewScreen(screen, loader_extensions, &driver_configs, psc);
allocates space for the driver_configs which never get released afaics
valgrind gives...
==25950== 7,304 (392 direct, 6,912 indirect) bytes in 1 blocks are definitely lost in loss record 201 of 257 ==25950== at 0x4A0739E: malloc (vg_replace_malloc.c:207) ==25950== by 0xC0A17BD: driConcatConfigs (utils.c:749) ==25950== by 0xC0A2517: driCreateNewScreen (swrast.c:218) ==25950== by 0xBC52B0B: driCreateScreen (drisw_glx.c:385) ==25950== by 0xBC39656: __glXInitialize (glxext.c:618) ==25950== by 0xBC35BF1: GetGLXPrivScreenConfig (glxcmds.c:184) ==25950== by 0xBC3670A: glXGetConfig (glxcmds.c:906)
Patch 19010, "half-hearted demo patch which makes valgrind shutup":
mesa-hack-free.patch