From d553396c16a1f356f35f383d7838df8b4d8717b5 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Tue, 12 Nov 2024 19:11:14 -0800 Subject: Append export and symbol info to correct arrays This is both a correctness fix and avoids leaking a massive amount of memory. --- view/sharedcache/core/SharedCache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/sharedcache/core/SharedCache.h') diff --git a/view/sharedcache/core/SharedCache.h b/view/sharedcache/core/SharedCache.h index fe037ca7..a27b15a0 100644 --- a/view/sharedcache/core/SharedCache.h +++ b/view/sharedcache/core/SharedCache.h @@ -967,7 +967,7 @@ namespace SharedCacheCore { m_activeContext.allocator); exportInfoArr.PushBack(exportInfoPairArr, m_activeContext.allocator); } - exportInfoArr.PushBack(exportInfoArr, m_activeContext.allocator); + exportInfos.PushBack(exportInfoArr, m_activeContext.allocator); } m_activeContext.doc.AddMember("exportInfos", exportInfos, m_activeContext.allocator); // std::vector>>>> m_symbolInfos @@ -985,7 +985,7 @@ namespace SharedCacheCore { m_activeContext.allocator); symbolInfoArr.PushBack(symbolInfoPairArr, m_activeContext.allocator); } - symbolInfoArr.PushBack(symbolInfoArr, m_activeContext.allocator); + symbolInfos.PushBack(symbolInfoArr, m_activeContext.allocator); } m_activeContext.doc.AddMember("symbolInfos", symbolInfos, m_activeContext.allocator); -- cgit v1.3.1