commit | d7c63220746fd06bc4e5905ae072707da2c389e2 | [log] [tgz] |
---|---|---|
author | Francis Ricci <francisjricci@gmail.com> | Fri Oct 06 15:33:28 2017 +0000 |
committer | Francis Ricci <francisjricci@gmail.com> | Fri Oct 06 15:33:28 2017 +0000 |
tree | 9ff9e740dc9eabd504abb42765deb7d94ea8467d | |
parent | f1af77a152abf4b543e398d6ddf0af1594423473 [diff] |
[llvm-objdump] Add RAII for xar apis Summary: 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. Reviewers: enderby, rafael, compnerd, lhames, dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D38598 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315069 91177308-0d34-0410-b5e6-96231b3b80d8