From bb847e78cfbf14ce7a8f7022ce3033931291e075 Mon Sep 17 00:00:00 2001 From: Bartosz Tomczyk Date: Sun, 9 Apr 2017 18:37:13 +0200 Subject: mesa: fix memory leak in arb_fragment_program Reviewed-by: Timothy Arceri --- src/mesa/program/arbprogparse.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/program') diff --git a/src/mesa/program/arbprogparse.c b/src/mesa/program/arbprogparse.c index 07bdf1603ef..83a501eea69 100644 --- a/src/mesa/program/arbprogparse.c +++ b/src/mesa/program/arbprogparse.c @@ -78,6 +78,7 @@ _mesa_parse_arb_fragment_program(struct gl_context* ctx, GLenum target, memset(&prog, 0, sizeof(prog)); memset(&state, 0, sizeof(state)); state.prog = &prog; + state.mem_ctx = program; if (!_mesa_parse_arb_program(ctx, target, (const GLubyte*) str, len, &state)) { -- cgit v1.2.3