On 11/17/2013 07:18 AM, Max Reitz wrote:
Any goto fail between having read nb_snapshots (returning a non-zero
value) and allocating s-snapshots (through qcow2_read_snapshots())
results in qcow2_free_snapshots() being called, dereferencing
s-snapshots which is still NULL.
Fix this by moving
Any goto fail between having read nb_snapshots (returning a non-zero
value) and allocating s-snapshots (through qcow2_read_snapshots())
results in qcow2_free_snapshots() being called, dereferencing
s-snapshots which is still NULL.
Fix this by moving the reading of nb_snapshots right before the