summaryrefslogtreecommitdiff
path: root/flow.c
diff options
context:
space:
mode:
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>2015-05-16 10:10:57 +0900
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>2015-05-16 10:52:39 +0900
commit8db1ff2a5ecb5c766c07a801f9bab2e482e674a1 (patch)
treecc59f94fdd9232b2cba03351aeed33c8e8cbca28 /flow.c
parent3e55d40fb5a68773b07cebb4a74870338eab81d4 (diff)
Add missing fio_mutex_up() on return
Call fio_mutex_up() before returning from this function.
Diffstat (limited to 'flow.c')
-rw-r--r--flow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/flow.c b/flow.c
index f9d868d..e0ac135 100644
--- 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;