[libvirt] [PATCH v2 09/39] qemuDomainGetHostdevPath: Drop @freeTmpPath

Cole Robinson crobinso at redhat.com
Thu Oct 17 22:13:33 UTC 2019


On 9/26/19 12:12 PM, Michal Privoznik wrote:
> The @freeTmpPath boolean is used to determine if @tmpPath holds
> an allocated memory or is a pointer to a constant string and
> therefore if it needs to be freed or not when returning from the
> function. Well, we can unify the way we set @tmpPath so that it
> always holds an allocated memory and thus always must be freed.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>

Reviewed-by: Cole Robinson <crobinso at redhat.com>

- Cole




More information about the libvir-list mailing list