virStorageSourceClear: Don't leave dangling pointers behind
virStorageSourceClear: Don't leave dangling pointers behind

Imagine that this function is called twice over the same disk
source. While in the first run all allocated memory is freed, not
all pointers are set to NULL (e.g. def->srcpool). So when called
again, these poitners are freed again resulting in double free.

Signed-off-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

libvirt/libvirt,jardasgit/libvirt,jardasgit/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,crobinso/libvirt,zippy2/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,crobinso/libvirt,eskultety/libvirt,olafhering/libvirt,jardasgit/libvirt,olafhering/libvirt,datto/libvirt,andreabolognani/libvirt,olafhering/libvirt,zippy2/libvirt,nertpinx/libvirt,libvirt/libvirt,andreabolognani/libvirt,crobinso/libvirt,jfehlig/libvirt,crobinso/libvirt,libvirt/libvirt,eskultety/libvirt,datto/libvirt,VenkatDatta/libvirt,zippy2/libvirt,nertpinx/libvirt,jfehlig/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,olafhering/libvirt,nertpinx/libvirt,zippy2/libvirt,eskultety/libvirt,datto/libvirt,andreabolognani/libvirt,datto/libvirt,eskultety/libvirt,libvirt/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,datto/libvirt,jardasgit/libvirt,jfehlig/libvirt,eskultety/libvirt,VenkatDatta/libvirt