"Daniel P. Berrange" <berrange(a)redhat.com> wrote:
Actually that's OK - the contract of the 'volCreate'
method in the backend
does not require free'ing of the 'vol' object upon failure. Becaue
'vol'
is passed in pre-allocated, it is the caller's responsibilty to release
the 'vol' object upon failure. So the cleanup code in the loop driver
only needs to cleanup mess it made itself - eg releasing the loop device
and closing the fd.
Ah... got it, now.
Thanks.