X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libringbuffer%2Fshm.c;fp=libringbuffer%2Fshm.c;h=3bf648d253bd4f00ad8791b34cecb3d75e0c19d2;hb=911360f660e1a4ad85813ae363168e1ddd558f67;hp=995665ae16f4ee0b4836b3ffaf047bfb76ec3193;hpb=7e0b2b3e8d6332f014ebaeb7bbbe8b73c3c269e9;p=lttng-ust.git diff --git a/libringbuffer/shm.c b/libringbuffer/shm.c index 995665ae..3bf648d2 100644 --- a/libringbuffer/shm.c +++ b/libringbuffer/shm.c @@ -77,6 +77,8 @@ struct shm_object_table *shm_object_table_create(size_t max_nb_obj) table = zmalloc(sizeof(struct shm_object_table) + max_nb_obj * sizeof(table->objects[0])); + if (!table) + return NULL; table->size = max_nb_obj; return table; }