mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-03 23:24:17 +08:00
loader/dri3: remove a no-op free call
When modifiers == NULL, the free(modifiers) is a no-op, so we can just remove it Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17974>
This commit is contained in:
parent
f572961d69
commit
ef611696a5
@ -1476,7 +1476,6 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format,
|
||||
count = mod_reply->num_screen_modifiers;
|
||||
modifiers = malloc(count * sizeof(uint64_t));
|
||||
if (!modifiers) {
|
||||
free(modifiers);
|
||||
free(mod_reply);
|
||||
goto no_image;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user