Prevent iov leak

This commit is contained in:
Andrey Borodin 2019-03-29 13:52:55 +05:00
parent af015839b0
commit f552c053e8
1 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,8 @@ od_relay_start(od_relay_t *relay,
relay->on_read_arg = on_read_arg;
relay->base = base;
relay->iov = machine_iov_create();
if (relay->iov == NULL)
relay->iov = machine_iov_create();
if (relay->iov == NULL)
return OD_EOOM;