Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.3:Staging:C:DVD
virglrenderer
0006-747a293-vrend-fix-a-leak-in-context-create...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0006-747a293-vrend-fix-a-leak-in-context-create-internal.patch of Package virglrenderer
From 747a293ff6055203e529f083896b823e22523fe7 Mon Sep 17 00:00:00 2001 From: Li Qiang <liq3ea@gmail.com> Date: Mon, 26 Dec 2016 21:23:43 -0500 Subject: [PATCH] vrend: fix a leak in context create internal Create a context more than once causes memory leak issue. Juest return if the context exists. Signed-off-by: Li Qiang <liq3ea@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Index: virglrenderer-0.5.0/src/vrend_decode.c =================================================================== --- virglrenderer-0.5.0.orig/src/vrend_decode.c +++ virglrenderer-0.5.0/src/vrend_decode.c @@ -1049,6 +1049,10 @@ void vrend_renderer_context_create_inter if (handle >= VREND_MAX_CTX) return; + dctx = dec_ctx[handle]; + if (dctx) + return; + dctx = malloc(sizeof(struct vrend_decode_ctx)); if (!dctx) return;
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