examples/io_uring-cp: fix a NULL pointer dereference

In case malloc fails, the fix returns NULL to avoid NULL pointer
dereference.

Signed-off-by: zhangliguang <zhangliguang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 file changed
tree: 2b92687602e9f07ab9534ed12ffd615157802484
  1. examples/
  2. man/
  3. src/
  4. test/
  5. .gitignore
  6. configure
  7. COPYING
  8. liburing.spec
  9. Makefile