diff options
Diffstat (limited to 'gprofng/src/StringMap.h')
-rw-r--r-- | gprofng/src/StringMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gprofng/src/StringMap.h b/gprofng/src/StringMap.h index db949ad..d4702d3 100644 --- a/gprofng/src/StringMap.h +++ b/gprofng/src/StringMap.h @@ -154,7 +154,7 @@ StringMap<Value_t>::put (const char *key, Value_t val) chunks[nchunks - 1] = new Entry[CHUNK_SIZE]; } entry = &chunks[entries / CHUNK_SIZE][entries % CHUNK_SIZE]; - entry->key = strdup (key); + entry->key = xstrdup (key); entry->val = val; index->insert (lo, entry); hashTable[idx] = entry; |