examples/vhost: fix path allocation failure handling
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 15 Jan 2019 07:13:24 +0000 (15:13 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Jan 2019 08:47:26 +0000 (09:47 +0100)
commitd79035b7dd6e599589552573b53c138f488dead3
treeb721f67ab6172d956e0e18d72a0922f07a00568a
parente1c0834f95597b1d5a889532281eb2fde6774ddd
examples/vhost: fix path allocation failure handling

Add the missing failure handling for path allocation,
as realloc() may fail.

Fixes: ad0eef4d2203 ("examples/vhost: support multiple socket files")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost/main.c