[PATCH] Fix double free in sg engine error path
authorJens Axboe <jens.axboe@oracle.com>
Mon, 5 Feb 2007 09:47:48 +0000 (10:47 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 5 Feb 2007 09:47:48 +0000 (10:47 +0100)
commite8b8c9f1f406862e01cdfc0852a6d2ca9b308302
tree3ff81a3b0c782ecee2e463635ebab3e3f8e3b7c9
parent3404cefcb23db812b3f3a164ef773b37d53355ab
[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>
engines/fio-engine-sg.c