Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Rings:2-TestDVD
virglrenderer
0002-40b0e781-renderer-fix-a-leak-in-resource-a...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-40b0e781-renderer-fix-a-leak-in-resource-attach.patch of Package virglrenderer
From 40b0e7813325b08077b6f541b3989edb2d86d837 Mon Sep 17 00:00:00 2001 From: Li Qiang <liq3ea@gmail.com> Date: Mon, 26 Dec 2016 21:23:42 -0500 Subject: [PATCH] renderer: fix a leak in resource attach Just return if the resource has been attached a iov to avoid memory leak. Signed-off-by: Li Qiang <liq3ea@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Index: virglrenderer-0.5.0/src/vrend_renderer.c =================================================================== --- virglrenderer-0.5.0.orig/src/vrend_renderer.c +++ virglrenderer-0.5.0/src/vrend_renderer.c @@ -4031,6 +4031,9 @@ int vrend_renderer_resource_attach_iov(i if (!res) return EINVAL; + if (res->iov) + return 0; + /* work out size and max resource size */ res->iov = iov; res->num_iovs = num_iovs;
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