diff options
| author | Max Reitz | 2016-05-17 16:41:26 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-05-25 19:04:10 +0200 |
| commit | 506f8709ceddd26542824d8cb9eac80201d085f1 (patch) | |
| tree | a7492a94f2de08e04f081d429c9da1b4e31e13d2 /tests | |
| parent | block: Fix bdrv_next() memory leak (diff) | |
| download | qemu-506f8709ceddd26542824d8cb9eac80201d085f1.tar.gz qemu-506f8709ceddd26542824d8cb9eac80201d085f1.tar.xz qemu-506f8709ceddd26542824d8cb9eac80201d085f1.zip | |
block: Drop useless bdrv_new() call
bdrv_append_temp_snapshot() uses bdrv_new() to create an empty BDS
before invoking bdrv_open() on that BDS. This is probably a relict from
when it used to do some modifications on that empty BDS, but now that is
unnecessary, so we can just set bs_snapshot to NULL and let bdrv_open()
do the rest.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
