[Mesa-dev] [PATCH 0/8] Fix multiple memory leaks

Aaron Watry awatry at gmail.com
Thu Dec 12 14:47:16 PST 2013


Most of these fixes target radeon (both EG and SI), but some also help
clover, pipe loader, and also vdpau playback.

These have been tested mostly on evergreen, but I've had them running
on my desktop (pitcairn) for a few weeks as well.

Aaron Watry (8):
  clover: Remove unused variable
  pipe_loader/sw: close dev->lib when initialization fails.
  radeon/compute: Stop leaking LLVMContexts in radeon_llvm_parse_bitcode
  r600/compute: Free compiled kernels when deleting compute state
  r600/compute: Use the correct FREE macro when deleting compute state.
  radeon/llvm: Free target data at end of optimization
  st/vdpau: Destroy context when initialization fails
  r600/pipe: Stop leaking context->start_compute_cs_cmd.buf on EG/CM

 src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c |  5 ++++-
 src/gallium/drivers/r600/evergreen_compute.c       | 24 ++++++++++++++++++----
 .../drivers/r600/evergreen_compute_internal.h      |  4 ++++
 src/gallium/drivers/r600/r600_pipe.c               |  2 ++
 src/gallium/drivers/radeon/radeon_llvm_util.c      | 16 +++++++--------
 src/gallium/drivers/radeon/radeon_llvm_util.h      |  9 ++++----
 src/gallium/drivers/radeonsi/radeonsi_compute.c    | 13 +++++++++---
 .../state_trackers/clover/llvm/invocation.cpp      |  1 -
 src/gallium/state_trackers/vdpau/device.c          |  1 +
 9 files changed, 54 insertions(+), 21 deletions(-)



More information about the mesa-dev mailing list