[Mesa-dev] [PATCH 0/6 v2] radeon: Plug some memory leaks

Aaron Watry awatry at gmail.com
Wed Nov 6 14:49:18 PST 2013


Turns out that I don't have commit access to Mesa, just piglit.  Feel
free to push if they look good.

I decided to have some fun and hooked valgrind up to my SI while running
a few OpenCL tests in piglit. This is the first batch of fixes.

Aaron Watry (6):
  radeon/llvm: fix spelling error
  radeon/llvm: Free libelf resources
  radeon/llvm: Free created llvm memory buffer
  radeonsi/compute: Free program and program.kernels on shutdown
  radeonsi/compute: Dispose of LLVM module after compiling kernels
  gallium/pipe_loader: un-reference udev resources when we're done with
    them.

v2: Fix indentation in patches 2, 3, 4, and 5.

 src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c |  3 +++
 src/gallium/drivers/radeon/radeon_llvm_emit.c       |  3 +++
 src/gallium/drivers/radeon/radeon_llvm_util.c       |  1 +
 src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c |  2 +-
 src/gallium/drivers/radeonsi/radeonsi_compute.c     | 17 ++++++++++++++++-
 5 files changed, 24 insertions(+), 2 deletions(-)



More information about the mesa-dev mailing list