From: Xinya Zhang Date: Mon, 17 Sep 2012 08:35:06 +0000 (+0800) Subject: r600g: Close a memory leak of llvm byte streams X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef0d7e13d7633b2d855e95dc7de2bb833592ec70;p=mesa.git 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 --- 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; }