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; }