libvirt_nss: Use VIR_STEAL_PTR() in findLease()

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
Michal Privoznik 2019-07-10 10:01:56 +02:00
parent bc85411c49
commit 2249f74419

View File

@ -332,9 +332,8 @@ findLease(const char *name,
#endif /* defined(LIBVIRT_NSS_GUEST) */
*address = tmpAddress;
VIR_STEAL_PTR(*address, tmpAddress);
*naddress = ntmpAddress;
tmpAddress = NULL;
ntmpAddress = 0;
ret = 0;