From ef611696a5a7768343f4df5fb1dc5533d44ae802 Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Wed, 10 Aug 2022 01:24:39 +0300 Subject: [PATCH] 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 Reviewed-by: Emil Velikov . Part-of: --- src/loader/loader_dri3_helper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c index 6cae8eb7f1f..81245f4372b 100644 --- a/src/loader/loader_dri3_helper.c +++ b/src/loader/loader_dri3_helper.c @@ -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; }