Fix: relayd: unchecked allocation result of unlinked file pool
[lttng-tools.git] / src / common / fd-tracker / inode.c
index 82799aee7e5fdcd107b89345c8c00d8e04c97f95..f105f5bd334df020e3d4800257ca3c0690f072eb 100644 (file)
@@ -250,6 +250,10 @@ LTTNG_HIDDEN struct lttng_unlinked_file_pool *lttng_unlinked_file_pool_create(
 {
        struct lttng_unlinked_file_pool *pool = zmalloc(sizeof(*pool));
 
+       if (!pool) {
+               goto error;
+       }
+
        if (!path || *path != '/') {
                ERR("Unlinked file pool must be created with an absolute path, path = \"%s\"",
                                path ? path : "NULL");
This page took 0.023558 seconds and 4 git commands to generate.