Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
virglrenderer
0013-a2f12a1b-fix-memory-leak-in-add-shader-pro...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0013-a2f12a1b-fix-memory-leak-in-add-shader-program.patch of Package virglrenderer
From a2f12a1b0f95b13b6f8dc3d05d7b74b4386394e4 Mon Sep 17 00:00:00 2001 From: Li Qiang <liq3ea@gmail.com> Date: Sat, 7 Jan 2017 01:24:21 -0500 Subject: renderer: fix memory leak in add shader program Free 'sprog' in error path to avoid memory leak. Signed-off-by: Li Qiang <liq3ea@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com> diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 32e2e7d..ad68f71 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -892,6 +892,7 @@ static struct vrend_linked_shader_program *add_shader_program(struct vrend_conte fprintf(stderr,"geom shader: %d GLSL\n%s\n", gs->id, gs->glsl_prog); fprintf(stderr,"frag shader: %d GLSL\n%s\n", fs->id, fs->glsl_prog); glDeleteProgram(prog_id); + free(sprog); return NULL; } -- cgit v0.10.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor