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

Aaron Watry awatry at gmail.com
Tue Dec 17 14:34:33 PST 2013


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

v2: Remove an unnecessary null check in patch 4 of 8

CC: "10.0" <mesa-stable at lists.freedesktop.org>

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       | 22 ++++++++++++++++----
 .../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, 52 insertions(+), 21 deletions(-)



More information about the mesa-dev mailing list