Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng-relayd / viewer-session.cpp
index 4529a21fa7c9342f9aa30749dce2dcfd226dcdc0..194073f598783e011cf8b852515e34dba05950a3 100644 (file)
@@ -22,7 +22,7 @@ struct relay_viewer_session *viewer_session_create(void)
 {
        struct relay_viewer_session *vsession;
 
-       vsession = (relay_viewer_session *) zmalloc(sizeof(*vsession));
+       vsession = zmalloc<relay_viewer_session>();
        if (!vsession) {
                goto end;
        }
This page took 0.023794 seconds and 4 git commands to generate.