Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / hashtable / hashtable.cpp
index 6b87ff71f016ae9fb1fa309ace336a58d369b1f8..1b40f91f125fa97ef46d409476148d1ef29585dd 100644 (file)
@@ -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.023756 seconds and 4 git commands to generate.