commit | e8b8c9f1f406862e01cdfc0852a6d2ca9b308302 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Mon Feb 05 10:47:48 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Mon Feb 05 10:47:48 2007 +0100 |
tree | 3ff81a3b0c782ecee2e463635ebab3e3f8e3b7c9 | |
parent | 3404cefcb23db812b3f3a164ef773b37d53355ab [diff] [blame] |
[PATCH] Fix double free in sg engine error path We need to clear td->io_ops->data if we free the structure, otherwise the ->cleanup() handler will try to free it again. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/engines/fio-engine-sg.c b/engines/fio-engine-sg.c index e074889..3ea1e28 100644 --- a/engines/fio-engine-sg.c +++ b/engines/fio-engine-sg.c
@@ -311,6 +311,7 @@ free(sd->events); free(sd->cmds); free(sd); + td->io_ops->data = NULL; return 1; }