diff options
author | Christopher Ferris <cferris@google.com> | 2019-01-22 18:51:07 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2019-01-23 09:49:28 -0800 |
commit | 1d44cdeea9f4b2b83c3a2364e7850fba41a98c52 (patch) | |
tree | ff7c09de391238cf07db0ec79a93d1b96c935615 /libunwindstack/include/unwindstack/JitDebug.h | |
parent | d61b637aca1c5c9ddc8cf5e90c3829ea3458ba05 (diff) | |
download | unwinding-1d44cdeea9f4b2b83c3a2364e7850fba41a98c52.tar.gz |
Fix memory leak in UnwinderFromPid object.
Actually make the destructor virtual so that objects in
UnwinderFromPid get freed.
Also, explicitly make the DexFiles and JitDebug destructors virtual.
Bug: 123099840
Test: Ran UnwindTest.local_from_pid thousands of times.
Change-Id: I8bf11c0eb3587fa82f5f14f4723ea5c91da0fd46
Diffstat (limited to 'libunwindstack/include/unwindstack/JitDebug.h')
-rw-r--r-- | libunwindstack/include/unwindstack/JitDebug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwindstack/include/unwindstack/JitDebug.h b/libunwindstack/include/unwindstack/JitDebug.h index f64b04f..8b7b4b5 100644 --- a/libunwindstack/include/unwindstack/JitDebug.h +++ b/libunwindstack/include/unwindstack/JitDebug.h @@ -38,7 +38,7 @@ class JitDebug : public Global { public: explicit JitDebug(std::shared_ptr<Memory>& memory); JitDebug(std::shared_ptr<Memory>& memory, std::vector<std::string>& search_libs); - ~JitDebug(); + virtual ~JitDebug(); Elf* GetElf(Maps* maps, uint64_t pc); |