commit | 78f27bd02ceba4a2f6ac5c725f4d4410eec205ef | [log] [tgz] |
---|---|---|
author | Fam Zheng <famz@redhat.com> | Wed Jul 17 17:57:37 2013 +0800 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Jul 19 12:29:21 2013 +0800 |
tree | e886fb2aaceb5ca84e4fc37c5dae43e273a92e8a | |
parent | dcc772e2f2b7c2a68644133fea2b874f6751a57b [diff] |
block: fix vvfat error path for enable_write_target s->qcow and s->qcow_filename are allocated but not freed on error. Fix the possible leaks, remove unnecessary check for bdrv_new(), propagate ret code of bdrv_create() and also the one of enable_write_target(). Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>