goptions: let destroy handler free changed options too
authorJens Axboe <axboe@kernel.dk>
Mon, 26 Mar 2012 12:25:26 +0000 (14:25 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Mar 2012 12:25:26 +0000 (14:25 +0200)
commitc04942a21e91d73286094daaa943c7950bb6c224
tree3060bd21a1be53f1ba90afc6309d6885d553e41c
parentf762cef937f69d6a23127baf47f22e8ffaea4c11
goptions: let destroy handler free changed options too

We can't touch the memory in the destroy handler, since it could
already have been freed. Just always leave the freeing of option
memory to the destructors.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
goptions.c