projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bac4a1
)
st/vdpau: Fix memory leak in vlVdpBitmapSurfaceCreate.
author
Vinson Lee
<vlee@freedesktop.org>
Fri, 22 Feb 2013 06:15:13 +0000
(22:15 -0800)
committer
Vinson Lee
<vlee@freedesktop.org>
Sat, 23 Feb 2013 03:30:03 +0000
(19:30 -0800)
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/vdpau/bitmap.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/vdpau/bitmap.c
b/src/gallium/state_trackers/vdpau/bitmap.c
index ecc5b158a9b2c69236cb606c6ee37d7f80b46c27..469f3e8996424338ae5494aaaed8b6c5a9936a30 100644
(file)
--- a/
src/gallium/state_trackers/vdpau/bitmap.c
+++ b/
src/gallium/state_trackers/vdpau/bitmap.c
@@
-83,6
+83,7
@@
vlVdpBitmapSurfaceCreate(VdpDevice device,
if (!res) {
pipe_mutex_unlock(dev->mutex);
FREE(dev);
+ FREE(vlsurface);
return VDP_STATUS_RESOURCES;
}