From e291dc123a8a6eaaa6a45b52aed947dfa80834f2 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 13 Mar 2007 21:50:34 +0100 Subject: [PATCH] Fix double io_u free in error path Signed-off-by: Jens Axboe --- io_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1