r600g: Close a memory leak of llvm byte streams
authorXinya Zhang <zxy_thf@hotmail.com>
Mon, 17 Sep 2012 08:35:06 +0000 (16:35 +0800)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 17 Sep 2012 21:09:43 +0000 (21:09 +0000)
No regressions found in the tests of opencl-example/run_tests.sh.

Signed-off-by: Xinya Zhang <zxy_thf@hotmail.com>
Signed-off-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r600/r600_shader.c

index 591592c..736165b 100644 (file)
@@ -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;
 }