Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] libva-2.23.0/va/drm/va_drm.c:104:23: warning[-Wanalyzer-malloc-leak]: leak of ‘drm_state’ libva-2.23.0/va/drm/va_drm.c:94:8: branch_false: following ‘false’ branch... libva-2.23.0/va/drm/va_drm.c:99:17: acquire_memory: allocated here libva-2.23.0/va/drm/va_drm.c:100:8: branch_false: following ‘false’ branch (when ‘drm_state’ is non-NULL)... libva-2.23.0/va/drm/va_drm.c:102:5: branch_false: ...to here libva-2.23.0/va/drm/va_drm.c:104:23: throw: if ‘va_newDisplayContext’ throws an exception... libva-2.23.0/va/drm/va_drm.c:104:23: danger: ‘drm_state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 102| drm_state->fd = fd; # 103| # 104|-> pDisplayContext = va_newDisplayContext(); # 105| if (!pDisplayContext) # 106| goto error; Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] libva-2.23.0/va/drm/va_drm.c:111:22: warning[-Wanalyzer-malloc-leak]: leak of ‘drm_state’ libva-2.23.0/va/drm/va_drm.c:94:8: branch_false: following ‘false’ branch... libva-2.23.0/va/drm/va_drm.c:99:17: acquire_memory: allocated here libva-2.23.0/va/drm/va_drm.c:100:8: branch_false: following ‘false’ branch (when ‘drm_state’ is non-NULL)... libva-2.23.0/va/drm/va_drm.c:102:5: branch_false: ...to here libva-2.23.0/va/drm/va_drm.c:105:8: branch_false: following ‘false’ branch... libva-2.23.0/va/drm/va_drm.c:108:5: branch_false: ...to here libva-2.23.0/va/drm/va_drm.c:111:22: throw: if ‘va_newDriverContext’ throws an exception... libva-2.23.0/va/drm/va_drm.c:111:22: danger: ‘drm_state’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) # 109| pDisplayContext->vaGetDriverNames = va_DisplayContextGetDriverNames; # 110| # 111|-> pDriverContext = va_newDriverContext(pDisplayContext); # 112| if (!pDriverContext) # 113| goto error; Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] libva-2.23.0/va/drm/va_drm_utils.c:47:5: warning[-Wanalyzer-malloc-leak]: leak of ‘driver_name’ libva-2.23.0/va/drm/va_drm_utils.c:43:8: branch_false: following ‘false’ branch... libva-2.23.0/va/drm/va_drm_utils.c:46:26: branch_false: ...to here libva-2.23.0/va/drm/va_drm_utils.c:46:19: acquire_memory: allocated here libva-2.23.0/va/drm/va_drm_utils.c:47:5: throw: if ‘drmFreeVersion’ throws an exception... libva-2.23.0/va/drm/va_drm_utils.c:47:5: danger: ‘driver_name’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 45| # 46| driver_name = strdup(drm_version->name); # 47|-> drmFreeVersion(drm_version); # 48| # 49| return driver_name; Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] libva-2.23.0/va/glx/va_glx.c:88:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pDriverContextGLX’ libva-2.23.0/va/glx/va_glx.c:89:8: branch_false: following ‘false’ branch... libva-2.23.0/va/glx/va_glx.c:92:5: branch_false: ...to here libva-2.23.0/va/glx/va_glx.c:95:8: branch_false: following ‘false’ branch (when ‘pDisplayContextGLX’ is non-NULL)... libva-2.23.0/va/glx/va_glx.c:98:25: branch_false: ...to here libva-2.23.0/va/glx/va_glx.c:98:25: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx.c:99:8: branch_false: following ‘false’ branch (when ‘pDriverContextGLX’ is non-NULL)... libva-2.23.0/va/glx/va_glx.c:102:5: branch_false: ...to here libva-2.23.0/va/glx/va_glx.c:88:11: danger: ‘pDriverContextGLX’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) # 86| VADriverContextGLXP pDriverContextGLX = NULL; # 87| # 88|-> dpy = vaGetDisplay(native_dpy); # 89| if (!dpy) # 90| return NULL; Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] libva-2.23.0/va/glx/va_glx_impl.c:100:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pSurfaceGLX’ libva-2.23.0/va/glx/va_glx_impl.c:780:1: enter_function: entry to ‘create_surface’ libva-2.23.0/va/glx/va_glx_impl.c:786:19: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:787:8: branch_false: following ‘false’ branch (when ‘pSurfaceGLX’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:790:5: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:803:10: call_function: calling ‘gl_get_texture_param’ from ‘create_surface’ # 98| GLenum error; # 99| int is_error = 0; # 100|-> while ((error = glGetError()) != GL_NO_ERROR) { # 101| if (report) # 102| va_glx_error_message("glError: %s caught\n", Error: GCC_ANALYZER_WARNING (CWE-401): [#def6] libva-2.23.0/va/glx/va_glx_impl.c:125:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pSurfaceGLX’ libva-2.23.0/va/glx/va_glx_impl.c:780:1: enter_function: entry to ‘create_surface’ libva-2.23.0/va/glx/va_glx_impl.c:786:19: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:787:8: branch_false: following ‘false’ branch (when ‘pSurfaceGLX’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:790:5: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:803:10: call_function: calling ‘gl_get_texture_param’ from ‘create_surface’ # 123| # 124| gl_purge_errors(); # 125|-> glGetTexLevelParameteriv(GL_TEXTURE_2D, 0, param, &val); # 126| if (gl_check_error()) # 127| return 0; Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] libva-2.23.0/va/glx/va_glx_impl.c:376:18: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’ libva-2.23.0/va/glx/va_glx_impl.c:362:10: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:363:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_true: following ‘true’ branch (when ‘parent’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:367:23: branch_true: ...to here libva-2.23.0/va/glx/va_glx_impl.c:375:9: branch_true: following ‘true’ branch... libva-2.23.0/va/glx/va_glx_impl.c:376:18: branch_true: ...to here libva-2.23.0/va/glx/va_glx_impl.c:376:18: throw: if ‘glXQueryContext’ throws an exception... libva-2.23.0/va/glx/va_glx_impl.c:376:18: danger: ‘cs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) # 374| # 375| if (parent && parent->context) { # 376|-> status = glXQueryContext( # 377| parent->display, # 378| parent->context, Error: GCC_ANALYZER_WARNING (CWE-401): [#def8] libva-2.23.0/va/glx/va_glx_impl.c:387:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’ libva-2.23.0/va/glx/va_glx_impl.c:362:10: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:363:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_true: following ‘true’ branch (when ‘parent’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:367:23: branch_true: ...to here libva-2.23.0/va/glx/va_glx_impl.c:375:9: branch_true: following ‘true’ branch... libva-2.23.0/va/glx/va_glx_impl.c:376:18: branch_true: ...to here libva-2.23.0/va/glx/va_glx_impl.c:381:12: branch_false: following ‘false’ branch... libva-2.23.0/va/glx/va_glx_impl.c:384:13: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:384:12: branch_false: following ‘false’ branch... libva-2.23.0/va/glx/va_glx_impl.c:389:25: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:387:21: throw: if ‘glXGetFBConfigs’ throws an exception... libva-2.23.0/va/glx/va_glx_impl.c:387:21: danger: ‘cs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) # 385| goto choose_fbconfig; # 386| # 387|-> fbconfigs = glXGetFBConfigs( # 388| parent->display, # 389| DefaultScreen(parent->display), Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] libva-2.23.0/va/glx/va_glx_impl.c:397:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’ libva-2.23.0/va/glx/va_glx_impl.c:362:10: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:363:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_true: following ‘true’ branch (when ‘parent’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:367:23: branch_true: ...to here libva-2.23.0/va/glx/va_glx_impl.c:375:9: branch_true: following ‘true’ branch... libva-2.23.0/va/glx/va_glx_impl.c:376:18: branch_true: ...to here libva-2.23.0/va/glx/va_glx_impl.c:381:12: branch_false: following ‘false’ branch... libva-2.23.0/va/glx/va_glx_impl.c:384:13: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:384:12: branch_false: following ‘false’ branch... libva-2.23.0/va/glx/va_glx_impl.c:389:25: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:392:12: branch_false: following ‘false’ branch... libva-2.23.0/va/glx/va_glx_impl.c:392:12: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:396:21: branch_true: following ‘true’ branch... libva-2.23.0/va/glx/va_glx_impl.c:399:35: branch_true: ...to here libva-2.23.0/va/glx/va_glx_impl.c:397:22: throw: if ‘glXGetFBConfigAttrib’ throws an exception... libva-2.23.0/va/glx/va_glx_impl.c:397:22: danger: ‘cs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0) # 395| /* Find out a GLXFBConfig compatible with the parent context */ # 396| for (n = 0; n < n_fbconfigs; n++) { # 397|-> status = glXGetFBConfigAttrib( # 398| cs->display, # 399| fbconfigs[n], Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] libva-2.23.0/va/glx/va_glx_impl.c:409:21: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’ libva-2.23.0/va/glx/va_glx_impl.c:362:10: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:363:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_false: following ‘false’ branch (when ‘parent’ is NULL)... libva-2.23.0/va/glx/va_glx_impl.c:370:23: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:409:21: throw: if ‘glXChooseFBConfig’ throws an exception... libva-2.23.0/va/glx/va_glx_impl.c:409:21: danger: ‘cs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0) # 407| } else { # 408| choose_fbconfig: # 409|-> fbconfigs = glXChooseFBConfig( # 410| ctx->native_dpy, # 411| ctx->x11_screen, Error: GCC_ANALYZER_WARNING (CWE-401): [#def11] libva-2.23.0/va/glx/va_glx_impl.c:421:19: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’ libva-2.23.0/va/glx/va_glx_impl.c:362:10: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:363:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_false: following ‘false’ branch (when ‘parent’ is NULL)... libva-2.23.0/va/glx/va_glx_impl.c:370:23: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:414:12: branch_false: following ‘false’ branch... libva-2.23.0/va/glx/va_glx_impl.c:421:19: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:421:19: branch_false: following ‘false’ branch (when ‘parent’ is NULL)... libva-2.23.0/va/glx/va_glx_impl.c:423:32: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:421:19: throw: if ‘glXCreateNewContext’ throws an exception... libva-2.23.0/va/glx/va_glx_impl.c:421:19: danger: ‘cs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0) # 419| } # 420| # 421|-> cs->context = glXCreateNewContext( # 422| cs->display, # 423| fbconfigs[n], Error: GCC_ANALYZER_WARNING (CWE-401): [#def12] libva-2.23.0/va/glx/va_glx_impl.c:436:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’ libva-2.23.0/va/glx/va_glx_impl.c:362:10: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:363:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:366:8: branch_false: following ‘false’ branch (when ‘parent’ is NULL)... libva-2.23.0/va/glx/va_glx_impl.c:370:23: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:414:12: branch_false: following ‘false’ branch... libva-2.23.0/va/glx/va_glx_impl.c:421:19: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:421:19: branch_false: following ‘false’ branch (when ‘parent’ is NULL)... libva-2.23.0/va/glx/va_glx_impl.c:423:32: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:428:8: branch_true: following ‘true’ branch... libva-2.23.0/va/glx/va_glx_impl.c:429:9: branch_true: ...to here libva-2.23.0/va/glx/va_glx_impl.c:435:8: branch_true: following ‘true’ branch (when ‘fbconfigs’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:436:9: branch_true: ...to here libva-2.23.0/va/glx/va_glx_impl.c:436:9: throw: if ‘XFree’ throws an exception... libva-2.23.0/va/glx/va_glx_impl.c:436:9: danger: ‘cs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0) # 434| end: # 435| if (fbconfigs) # 436|-> XFree(fbconfigs); # 437| return cs; # 438| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def13] libva-2.23.0/va/glx/va_glx_impl.c:801:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pSurfaceGLX’ libva-2.23.0/va/glx/va_glx_impl.c:786:19: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:787:8: branch_false: following ‘false’ branch (when ‘pSurfaceGLX’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:790:5: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:801:5: throw: if ‘glEnable’ throws an exception... libva-2.23.0/va/glx/va_glx_impl.c:801:5: danger: ‘pSurfaceGLX’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0) # 799| pSurfaceGLX->fbo = 0; # 800| # 801|-> glEnable(target); # 802| glBindTexture(target, texture); # 803| if (!gl_get_texture_param(GL_TEXTURE_INTERNAL_FORMAT, &internal_format)) Error: GCC_ANALYZER_WARNING (CWE-401): [#def14] libva-2.23.0/va/glx/va_glx_impl.c:802:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pSurfaceGLX’ libva-2.23.0/va/glx/va_glx_impl.c:786:19: acquire_memory: allocated here libva-2.23.0/va/glx/va_glx_impl.c:787:8: branch_false: following ‘false’ branch (when ‘pSurfaceGLX’ is non-NULL)... libva-2.23.0/va/glx/va_glx_impl.c:790:5: branch_false: ...to here libva-2.23.0/va/glx/va_glx_impl.c:802:5: throw: if ‘glBindTexture’ throws an exception... libva-2.23.0/va/glx/va_glx_impl.c:802:5: danger: ‘pSurfaceGLX’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0) # 800| # 801| glEnable(target); # 802|-> glBindTexture(target, texture); # 803| if (!gl_get_texture_param(GL_TEXTURE_INTERNAL_FORMAT, &internal_format)) # 804| goto end; Error: GCC_ANALYZER_WARNING (CWE-401): [#def15] libva-2.23.0/va/va.c:1027:17: warning[-Wanalyzer-malloc-leak]: leak of ‘image_formats’ libva-2.23.0/va/va.c:1015:8: branch_false: following ‘false’ branch... libva-2.23.0/va/va.c:1017:10: branch_false: ...to here libva-2.23.0/va/va.c:1017:8: branch_false: following ‘false’ branch... libva-2.23.0/va/va.c:1020:25: branch_false: ...to here libva-2.23.0/va/va.c:1021:21: acquire_memory: allocated here libva-2.23.0/va/va.c:1022:8: branch_false: following ‘false’ branch (when ‘image_formats’ is non-NULL)... libva-2.23.0/va/va.c:1027:17: branch_false: ...to here libva-2.23.0/va/va.c:1027:17: throw: if the called function throws an exception... libva-2.23.0/va/va.c:1027:17: danger: ‘image_formats’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) # 1025| } # 1026| # 1027|-> va_status = ctx->vtable->vaQueryImageFormats( # 1028| ctx, image_formats, &num_image_formats); # 1029| if (va_status != VA_STATUS_SUCCESS) Error: GCC_ANALYZER_WARNING (CWE-775): [#def16] libva-2.23.0/va/va_trace.c:665:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘pfp’ libva-2.23.0/va/va_trace.c:746:13: enter_function: entry to ‘refresh_log_file’ libva-2.23.0/va/va_trace.c:756:21: call_function: calling ‘start_tracing2log_file’ from ‘refresh_log_file’ # 663| goto FAIL; # 664| # 665|-> va_infoMessage(pva_trace->dpy, "%s %s for the thread 0x%08x\n", # 666| new_fn_flag ? "Open new log file" : "Append to log file", # 667| plog_file->fn_log, thd_id); Error: GCC_ANALYZER_WARNING (CWE-401): [#def17] libva-2.23.0/va/va_trace.c:665:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pfp’ libva-2.23.0/va/va_trace.c:746:13: enter_function: entry to ‘refresh_log_file’ libva-2.23.0/va/va_trace.c:756:21: call_function: calling ‘start_tracing2log_file’ from ‘refresh_log_file’ # 663| goto FAIL; # 664| # 665|-> va_infoMessage(pva_trace->dpy, "%s %s for the thread 0x%08x\n", # 666| new_fn_flag ? "Open new log file" : "Append to log file", # 667| plog_file->fn_log, thd_id); Error: GCC_ANALYZER_WARNING (CWE-404): [#def18] libva-2.23.0/va/va_trace.c:967:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’ libva-2.23.0/va/va_trace.c:7315:13: enter_function: entry to ‘va_TraceDisplayAttributes’ libva-2.23.0/va/va_trace.c:7326:5: call_function: calling ‘va_TraceMsg’ from ‘va_TraceDisplayAttributes’ libva-2.23.0/va/va_trace.c:7326:5: return_function: returning to ‘va_TraceDisplayAttributes’ from ‘va_TraceMsg’ libva-2.23.0/va/va_trace.c:7336:5: call_function: calling ‘va_TraceMsg’ from ‘va_TraceDisplayAttributes’ # 965| vfprintf(fp, msg, args); # 966| } else # 967|-> fflush(fp); # 968| } # 969| Error: GCC_ANALYZER_WARNING (CWE-401): [#def19] libva-2.23.0/va/wayland/va_wayland_linux_dmabuf.c:88:19: warning[-Wanalyzer-malloc-leak]: leak of ‘devices’ libva-2.23.0/va/wayland/va_wayland_linux_dmabuf.c:81:8: branch_false: following ‘false’ branch... libva-2.23.0/va/wayland/va_wayland_linux_dmabuf.c:84:27: branch_false: ...to here libva-2.23.0/va/wayland/va_wayland_linux_dmabuf.c:84:27: acquire_memory: allocated here libva-2.23.0/va/wayland/va_wayland_linux_dmabuf.c:85:8: branch_false: following ‘false’ branch (when ‘devices’ is non-NULL)... libva-2.23.0/va/wayland/va_wayland_linux_dmabuf.c:88:19: branch_false: ...to here libva-2.23.0/va/wayland/va_wayland_linux_dmabuf.c:88:19: throw: if ‘drmGetDevices2’ throws an exception... libva-2.23.0/va/wayland/va_wayland_linux_dmabuf.c:88:19: danger: ‘devices’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 86| return NULL; # 87| } # 88|-> devices_len = drmGetDevices2(flags, devices, devices_len); # 89| if (devices_len < 0) { # 90| free(devices); Error: GCC_ANALYZER_WARNING (CWE-401): [#def20] libva-2.23.0/va/x11/dri2_util.c:76:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dri2_drawable’ libva-2.23.0/va/x11/dri2_util.c:68:21: acquire_memory: allocated here libva-2.23.0/va/x11/dri2_util.c:70:8: branch_false: following ‘false’ branch (when ‘dri2_drawable’ is non-NULL)... libva-2.23.0/va/x11/dri2_util.c:73:5: branch_false: ...to here libva-2.23.0/va/x11/dri2_util.c:76:5: throw: if ‘VA_DRI2CreateDrawable’ throws an exception... libva-2.23.0/va/x11/dri2_util.c:76:5: danger: ‘dri2_drawable’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) # 74| dri2_drawable->base.x = 0; # 75| dri2_drawable->base.y = 0; # 76|-> VA_DRI2CreateDrawable(ctx->native_dpy, x_drawable); # 77| # 78| return &dri2_drawable->base; Error: GCC_ANALYZER_WARNING (CWE-401): [#def21] libva-2.23.0/va/x11/dri2_util.c:78:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dri2_drawable’ libva-2.23.0/va/x11/dri2_util.c:68:21: acquire_memory: allocated here libva-2.23.0/va/x11/dri2_util.c:70:8: branch_false: following ‘false’ branch (when ‘dri2_drawable’ is non-NULL)... libva-2.23.0/va/x11/dri2_util.c:73:5: branch_false: ...to here libva-2.23.0/va/x11/dri2_util.c:78:12: danger: ‘dri2_drawable’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) # 76| VA_DRI2CreateDrawable(ctx->native_dpy, x_drawable); # 77| # 78|-> return &dri2_drawable->base; # 79| } # 80| Error: GCC_ANALYZER_WARNING (CWE-401): [#def22] libva-2.23.0/va/x11/va_dri2.c:333:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffers’ libva-2.23.0/va/x11/va_dri2.c:315:8: branch_false: following ‘false’ branch... libva-2.23.0/va/x11/va_dri2.c:319:8: branch_false: ...to here libva-2.23.0/va/x11/va_dri2.c:319:8: branch_false: following ‘false’ branch (when ‘width’ is NULL)... libva-2.23.0/va/x11/va_dri2.c:321:8: branch_false: ...to here libva-2.23.0/va/x11/va_dri2.c:321:8: branch_false: following ‘false’ branch (when ‘height’ is NULL)... libva-2.23.0/va/x11/va_dri2.c:323:8: branch_false: ...to here libva-2.23.0/va/x11/va_dri2.c:323:8: branch_false: following ‘false’ branch (when ‘outCount’ is NULL)... libva-2.23.0/va/x11/va_dri2.c:326:15: branch_false: ...to here libva-2.23.0/va/x11/va_dri2.c:326:15: acquire_memory: allocated here libva-2.23.0/va/x11/va_dri2.c:327:8: branch_false: following ‘false’ branch (when ‘buffers’ is non-NULL)... libva-2.23.0/va/x11/va_dri2.c:327:8: branch_false: ...to here libva-2.23.0/va/x11/va_dri2.c:332:17: branch_true: following ‘true’ branch... libva-2.23.0/va/x11/va_dri2.c:333:9: branch_true: ...to here libva-2.23.0/va/x11/va_dri2.c:333:9: throw: if ‘_XReadPad’ throws an exception... libva-2.23.0/va/x11/va_dri2.c:333:9: danger: ‘buffers’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) # 331| # 332| for (i = 0; i < rep.count; i++) { # 333|-> _XReadPad(dpy, (char *) &repBuffer, sizeof repBuffer); # 334| buffers[i].attachment = repBuffer.attachment; # 335| buffers[i].name = repBuffer.name;
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-158.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libva-2.23.0-2.fc44 |
| store-results-to | /tmp/tmpqeon2b63/libva-2.23.0-2.fc44.tar.xz |
| time-created | 2026-01-08 19:23:47 |
| time-finished | 2026-01-08 19:25:30 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpqeon2b63/libva-2.23.0-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqeon2b63/libva-2.23.0-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |