Skip to content

vrend: Don't ref-count UBOs

Fixes resource leaks:

Direct leak of 2448 byte(s) in 9 object(s) allocated from:
    #0 0x7fe3151aba68 in __interceptor_calloc (/usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libasan.so+0xdba68)
    #1 0x7fe314b89ea6 in vrend_renderer_resource_create ../../../../virgl-gitlab/src/vrend_renderer.c:5834
    #2 0x7fe314b52b44 in virgl_renderer_resource_create ../../../../virgl-gitlab/src/virglrenderer.c:63
    #3 0x560533f27852 in vtest_create_resource2 ../../../../virgl-gitlab/vtest/vtest_renderer.c:432
    #4 0x560533f254fa in vtest_main_run_renderer ../../../../virgl-gitlab/vtest/vtest_server.c:359
    #5 0x560533f244df in main ../../../../virgl-gitlab/vtest/vtest_server.c:105
    #6 0x7fe313919ac9 in __libc_start_main (/lib64/libc.so.6+0x21ac9)

Signed-off-by: Gert Wollny gert.wollny@collabora.com

Edited by Gert Wollny

Merge request reports

Loading