From ef0d7e13d7633b2d855e95dc7de2bb833592ec70 Mon Sep 17 00:00:00 2001 From: Xinya Zhang Date: Mon, 17 Sep 2012 16:35:06 +0800 Subject: [PATCH] r600g: Close a memory leak of llvm byte streams No regressions found in the tests of opencl-example/run_tests.sh. Signed-off-by: Xinya Zhang Signed-off-by: Tom Stellard --- src/gallium/drivers/r600/r600_shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 591592c52ba..736165b8083 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -253,6 +253,7 @@ int r600_compute_shader_create(struct pipe_context * ctx, if (dump) { r600_bytecode_dump(shader_ctx.bc); } + free(bytes); return 1; } -- 2.30.2