backend: fix the memory leak if fio_memalign fails,
authorZiye Yang <ziye.yang@intel.com>
Tue, 29 Oct 2019 14:35:38 +0000 (22:35 +0800)
committerZiye Yang <ziye.yang@intel.com>
Tue, 29 Oct 2019 14:37:38 +0000 (22:37 +0800)
commitab43b8cb08d2152e3f15544f8dfd49d7e3e975cc
treee902d1832d8bcfbc7524479cde594c31edd125c2
parentc656b9056e45f9acd1d374a85c5becf7cc6a00ca
backend: fix the memory leak if fio_memalign fails,

We should not use break, we should use return 1 and explictly fails this,
then the cleanup routine will work. If not, this function may still
return 0.

Signed-off-by: Gang Cao <cao.gang@intel.com>
Signed-off-by: Ziye Yang <ziye.yang@intel.com>
backend.c