Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
tools/nss/libvirt_nss.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/nss/libvirt_nss.c b/tools/nss/libvirt_nss.c
index 3ff1bada31..4de960d6f1 100644
--- a/tools/nss/libvirt_nss.c
+++ b/tools/nss/libvirt_nss.c
@@ -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;
--
2.21.0