[PATCH] Fix double free in error path
authorJens Axboe <jens.axboe@oracle.com>
Tue, 2 Jan 2007 08:20:49 +0000 (09:20 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 2 Jan 2007 08:20:49 +0000 (09:20 +0100)
commit4eb899a6de14660e2ce722dcc069836e17a6bc3e
treef7ba1648de046a390a8dbb1e4cbe487a4e4499ad
parentfb863d7ccfc7105bd71c89129e472f5eae14be9c
[PATCH] Fix double free in error path

Reported by zhuxudong <zhuxudong@nrchpc.ac.cn>

If we fail reading, we will free the realloc'ed pointer and jump to
the error path which will free the original pointer. Fix this by clearing
the original pointer.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
blkparse.c