summaryrefslogtreecommitdiff
path: root/view/kernelcache/ui
diff options
context:
space:
mode:
authorAlexander Khosrowshahi <alexk@vector35.com>2025-06-02 17:35:28 -0400
committerAlexander Taylor <alex@vector35.com>2025-06-04 14:13:45 -0400
commit368407b09eba7c5d09689ac81eaadd1645820edd (patch)
treedef58a37155744cf7ac2427a3f143efb807d1e12 /view/kernelcache/ui
parent9c8d4eac3dadf6273b34ba193c219de9283285b3 (diff)
Fix calls to BNFreeString in kernel cache API
Amends calls to BNFreeString in kernel cache API that were causing `get_macho_header_for_address`, `get_macho_header_for_image`, `get_image_name_for_address`, and `get_name_for_address` to fail. Fixes https://github.com/Vector35/binaryninja-api/issues/6855
Diffstat (limited to 'view/kernelcache/ui')
-rw-r--r--view/kernelcache/ui/kctriage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/kernelcache/ui/kctriage.cpp b/view/kernelcache/ui/kctriage.cpp
index 5103bc51..bac39b5e 100644
--- a/view/kernelcache/ui/kctriage.cpp
+++ b/view/kernelcache/ui/kctriage.cpp
@@ -93,7 +93,7 @@ void KCTriageView::loadImagesWithAddr(const std::vector<uint64_t>& addresses) {
{
if (imageLoadTask.IsCancelled())
break;
- std::string newLoad = fmt::format("Loading images... ({}/{})", loadedImages++, images.size());
+ const std::string newLoad = fmt::format("Loading images... ({}/{})", loadedImages++, images.size());
imageLoadTask.SetProgressText(newLoad);
if (m_cache->LoadImageWithInstallName(imageName))
setImageLoaded(addr);