Add missing fio_mutex_up() on return
[fio.git] / flow.c
diff --git a/flow.c b/flow.c
index f9d868d..e0ac135 100644 (file)
--- a/flow.c
+++ b/flow.c
@@ -59,6 +59,7 @@ static struct fio_flow *flow_get(unsigned int id)
                flow = smalloc(sizeof(*flow));
                if (!flow) {
                        log_err("fio: smalloc pool exhausted\n");
+                       fio_mutex_up(flow_lock);
                        return NULL;
                }
                flow->refs = 0;