[PATCH] Fix memory leak for APValues that do memory allocation.

Manuel Klimek klimek at google.com
Fri May 10 13:38:49 PDT 2013


  Changing the patch to only register cleanup functions for APValues that actually
  do allocations.

  This patch needs a patch to APInt / APFloat in llvm, which I'll send out once
  there is agreement that this is the right solution.

Hi rafael,

http://llvm-reviews.chandlerc.com/D736

CHANGE SINCE LAST DIFF
  http://llvm-reviews.chandlerc.com/D736?vs=1837&id=1925#toc

BRANCH
  memory-leak

ARCANIST PROJECT
  clang

Files:
  include/clang/AST/APValue.h
  include/clang/AST/ASTContext.h
  lib/AST/APValue.cpp
  lib/AST/ASTContext.cpp
  lib/AST/Decl.cpp
  unittests/AST/CMakeLists.txt
  unittests/AST/DeclTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D736.3.patch
Type: text/x-patch
Size: 7953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130510/32b3373c/attachment.bin>


More information about the cfe-commits mailing list