projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add type-checked versions of allocation and deallocations functions
[lttng-tools.git]
/
src
/
common
/
hashtable
/
hashtable.cpp
diff --git
a/src/common/hashtable/hashtable.cpp
b/src/common/hashtable/hashtable.cpp
index 6b87ff71f016ae9fb1fa309ace336a58d369b1f8..1b40f91f125fa97ef46d409476148d1ef29585dd 100644
(file)
--- a/
src/common/hashtable/hashtable.cpp
+++ b/
src/common/hashtable/hashtable.cpp
@@
-110,7
+110,7
@@
struct lttng_ht *lttng_ht_new(unsigned long size, lttng_ht_type type)
}
pthread_mutex_unlock(&seed_lock);
- ht =
(lttng_ht *) zmalloc(sizeof(*ht)
);
+ ht =
zmalloc<lttng_ht>(
);
if (ht == NULL) {
PERROR("zmalloc lttng_ht");
goto error;
This page took
0.023158 seconds
and
4
git commands to generate.