qcow2: Cleanups and memleak fix in qcow2_snapshot_create
commit03343166f703d5c8f02b8519f8493c56e5541ae7
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 Nov 2011 16:46:29 +0000 (16 17:46 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Dec 2011 13:51:36 +0000 (5 14:51 +0100)
treeb0c8ef90437752ab3e73177e1dbea38c5760f0c1
parentd69969c4046a81af106e723ff1bc2740365e67c1
qcow2: Cleanups and memleak fix in qcow2_snapshot_create

sn->id_str could be leaked before this. The rest of this patch changes
comments, fixes coding style or removes checks that are unnecessary with
g_malloc.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/qcow2-snapshot.c