diff options
author | Fam Zheng <famz@redhat.com> | 2013-07-17 17:57:37 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-07-19 12:29:21 +0800 |
commit | 78f27bd02ceba4a2f6ac5c725f4d4410eec205ef (patch) | |
tree | e886fb2aaceb5ca84e4fc37c5dae43e273a92e8a /block.c | |
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>
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions