From: Jens Axboe Date: Tue, 13 Mar 2007 20:50:34 +0000 (+0100) Subject: Fix double io_u free in error path X-Git-Tag: fio-1.14~8 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=e291dc123a8a6eaaa6a45b52aed947dfa80834f2;hp=8ab538730857ce3a29c5f00fb55b967468751ec9;ds=sidebyside Fix double io_u free in error path Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index fead400c..e96d4956 100644 --- a/io_u.c +++ b/io_u.c @@ -487,7 +487,7 @@ set_file: if (!f || (ret = td_io_open_file(td, f))) { put_io_u(td, io_u); - break; + return NULL; } goto set_file; }