X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libringbuffer%2Fshm.c;fp=libringbuffer%2Fshm.c;h=3bf648d253bd4f00ad8791b34cecb3d75e0c19d2;hb=b02f77a4dffe33623570933fc79b0f60eb1b6de2;hp=995665ae16f4ee0b4836b3ffaf047bfb76ec3193;hpb=6a7f2e0d38901bdc8ec2c11b2bc94aa818ffddee;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; }