summaryrefslogtreecommitdiff
path: root/view/sharedcache/api/sharedcache.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-02-12 17:06:31 -0500
committerGlenn Smith <glenn@vector35.com>2025-02-13 13:51:54 -0500
commit5365728462076834832090072788972585260876 (patch)
tree488624f36cc3c3da2bb2acb14cf76a9e39918619 /view/sharedcache/api/sharedcache.cpp
parent1925885513166893508719453618249182735388 (diff)
[SharedCache] Use StringRef for performance
Diffstat (limited to 'view/sharedcache/api/sharedcache.cpp')
-rw-r--r--view/sharedcache/api/sharedcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/sharedcache/api/sharedcache.cpp b/view/sharedcache/api/sharedcache.cpp
index 472bb024..2b5ba744 100644
--- a/view/sharedcache/api/sharedcache.cpp
+++ b/view/sharedcache/api/sharedcache.cpp
@@ -165,7 +165,7 @@ namespace SharedCacheAPI {
{
DSCSymbol sym;
sym.address = value[i].address;
- sym.name = value[i].name;
+ sym.name = StringRef(BNDuplicateStringRef(value[i].name));
sym.image = value[i].image;
result.push_back(sym);
}