commit | c3ca988d2b0ee94dc8d53eff4b1c2de4ac06a270 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Thu Apr 25 15:59:27 2013 +0200 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Apr 26 13:26:28 2013 +0200 |
tree | d9452975ab8a2a00d27c3d61d39c3d7d6261c136 | |
parent | 8ec7d390b0d50b5e5b4b1d8dba7ba40d64a70875 [diff] |
rbd: Fix use after free in rbd_open() Commit a9ccedc3 frees the QemuOpts for the driver-specific options immediately, even though it still needs the filename string that is contained there. This doesn't work. Move the deletion of the QemuOpts to the end of the function where its content isn't needed any more. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>