[PATCH] D38598: [llvm-objdump] Add RAII for xar apis

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 13:55:23 PDT 2017


fjricci created this revision.

xar_open and xar_iter_new require manual calls to close/free functions
to deallocate resources. This makes it easy to introduce memory leaks,
so add RAII struct wrappers for these resources.


https://reviews.llvm.org/D38598

Files:
  tools/llvm-objdump/MachODump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38598.117884.patch
Type: text/x-patch
Size: 3364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171005/3d9333e0/attachment.bin>


More information about the llvm-commits mailing list