diff --git a/src/vrend_shader.c b/src/vrend_shader.c index a588a29..0389f3f 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -2258,6 +2258,7 @@ static boolean fill_interpolants(struct dump_ctx *ctx, struct vrend_shader_info if (ctx->prog_type == TGSI_PROCESSOR_VERTEX || ctx->prog_type == TGSI_PROCESSOR_GEOMETRY) return TRUE; + free(sinfo->interpinfo); sinfo->interpinfo = calloc(ctx->num_interps, sizeof(struct vrend_interp_info)); if (!sinfo->interpinfo) return FALSE;