Mesa (master): vc4: Fix a leak of the simulator's exec BO's actual vc4_bo.
Eric Anholt
anholt at kemper.freedesktop.org
Mon Dec 15 07:12:46 UTC 2014
Module: Mesa
Branch: master
Commit: f519c3bff14dfc4555c511a4d3709affa056d688
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f519c3bff14dfc4555c511a4d3709affa056d688
Author: Eric Anholt <eric at anholt.net>
Date: Sat Dec 13 16:37:28 2014 -0800
vc4: Fix a leak of the simulator's exec BO's actual vc4_bo.
---
src/gallium/drivers/vc4/vc4_simulator.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/vc4/vc4_simulator.c b/src/gallium/drivers/vc4/vc4_simulator.c
index 1040ae8..bb4a669 100644
--- a/src/gallium/drivers/vc4/vc4_simulator.c
+++ b/src/gallium/drivers/vc4/vc4_simulator.c
@@ -173,6 +173,7 @@ vc4_simulator_flush(struct vc4_context *vc4, struct drm_vc4_submit_cl *args)
if (ret)
return ret;
+ vc4_bo_unreference(&exec.exec_bo->bo);
free(exec.exec_bo);
if (ctex && ctex->bo->simulator_winsys_map) {
More information about the mesa-commit
mailing list