mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-09 12:00:26 +01:00
Replace assert() with proper error checking for realloc() failure. If realloc fails, free any existing modifiers, clean up resources, and return NULL instead of potentially crashing or leaking memory. Fixes a potential memory leak when memory allocation fails. Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39215> |
||
|---|---|---|
| .. | ||
| meson.build | ||
| wsi_common.c | ||
| wsi_common.h | ||
| wsi_common_display.c | ||
| wsi_common_display.h | ||
| wsi_common_drm.c | ||
| wsi_common_drm.h | ||
| wsi_common_headless.c | ||
| wsi_common_metal.c | ||
| wsi_common_metal_layer.h | ||
| wsi_common_metal_layer.m | ||
| wsi_common_private.h | ||
| wsi_common_queue.h | ||
| wsi_common_wayland.c | ||
| wsi_common_win32.cpp | ||
| wsi_common_x11.c | ||