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 591592c52ba537067296e2e98bcee0489e933f2c..736165b8083c80ee5c7950a4b40249619300e18e 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;
 }