X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libringbuffer%2Fshm.c;h=3bf648d253bd4f00ad8791b34cecb3d75e0c19d2;hb=31ea1f6f0435b9e4ae91f72462fa0c2856dce8b2;hp=995665ae16f4ee0b4836b3ffaf047bfb76ec3193;hpb=af21f7816739b0f9db8b4006ef4378ddc2de0157;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; }