vrend: Fix possible leaked so_names

Signed-off-by: Lepton Wu <lepton@chromium.org>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Lepton Wu 5 years ago
parent b1b38002ee
commit 8e12ba035c
  1. 1
      src/vrend_shader.c

@ -1898,6 +1898,7 @@ static void emit_so_movs(struct dump_ctx *ctx)
emit_buff(ctx, "tfout%d = %s(%s);\n", i, outtype, out_var);
} else {
get_so_name(ctx, true, output, ctx->so->output[i].register_index, out_var, writemask);
free(ctx->so_names[i]);
ctx->so_names[i] = strdup(out_var);
}
}

Loading…
Cancel
Save