summaryrefslogtreecommitdiff
path: root/view/sharedcache
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache')
-rw-r--r--view/sharedcache/api/python/sharedcache.py3
-rw-r--r--view/sharedcache/core/SharedCache.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/view/sharedcache/api/python/sharedcache.py b/view/sharedcache/api/python/sharedcache.py
index 54745ed5..b660d9d9 100644
--- a/view/sharedcache/api/python/sharedcache.py
+++ b/view/sharedcache/api/python/sharedcache.py
@@ -109,8 +109,7 @@ class SharedCache:
self.handle = sccore.BNGetSharedCache(view.handle)
def load_image_with_install_name(self, installName):
- str = BNAllocString(installName.encode('utf-8'))
- return sccore.BNDSCViewLoadImageWithInstallName(self.handle, str)
+ return sccore.BNDSCViewLoadImageWithInstallName(self.handle, installName)
def load_section_at_address(self, addr):
return sccore.BNDSCViewLoadSectionAtAddress(self.handle, addr)
diff --git a/view/sharedcache/core/SharedCache.cpp b/view/sharedcache/core/SharedCache.cpp
index 9bfa59ad..4d0f0046 100644
--- a/view/sharedcache/core/SharedCache.cpp
+++ b/view/sharedcache/core/SharedCache.cpp
@@ -3014,7 +3014,7 @@ extern "C"
bool BNDSCViewLoadImageWithInstallName(BNSharedCache* cache, char* name)
{
std::string imageName = std::string(name);
- BNFreeString(name);
+ // FIXME !!!!!!!! BNFreeString(name);
if (cache->object)
return cache->object->LoadImageWithInstallName(imageName);