Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-relayd / connection.cpp
index c1e58aba3430f0fbbbedb89cb42261731cc94b3d..fb53862a436bde4a4c84b1cc7e6a467049efa444 100644 (file)
@@ -90,7 +90,7 @@ struct relay_connection *connection_create(struct lttcomm_sock *sock,
 {
        struct relay_connection *conn;
 
-       conn = (relay_connection *) zmalloc(sizeof(*conn));
+       conn = zmalloc<relay_connection>();
        if (!conn) {
                PERROR("zmalloc relay connection");
                goto end;
This page took 0.023339 seconds and 4 git commands to generate.