Fix double io_u free in error path
authorJens Axboe <jens.axboe@oracle.com>
Tue, 13 Mar 2007 20:50:34 +0000 (21:50 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 13 Mar 2007 20:50:34 +0000 (21:50 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index fead400cd7c5759d34ad2210f06c5ecee0335145..e96d495658c7b127b065f92d934f6b76d01cfa3a 100644 (file)
--- 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;
                }