From: Daniel P. Berrange berra...@redhat.com
Make virKeepAlive use the virObject APIs for reference counting
Signed-off-by: Daniel P. Berrange berra...@redhat.com
---
src/libvirt_probes.d |4 +--
src/rpc/virkeepalive.c | 73 +-
...
@@ -179,20 +195,13 @@ virKeepAliveTimer(int timer ATTRIBUTE_UNUSED, void
*opaque)
}
virKeepAliveLock(ka);
-ka-refs--;
+virObjectUnref(ka);
cleanup:
virKeepAliveUnlock(ka);
}
virObjectUnref may have freed ka and we are going to unlock a freed
object.
On 07/11/2012 07:35 AM, Daniel P. Berrange wrote:
From: Daniel P. Berrange berra...@redhat.com
Make virKeepAlive use the virObject APIs for reference counting
Signed-off-by: Daniel P. Berrange berra...@redhat.com
---
ACK
--
Eric Blake ebl...@redhat.com+1-919-301-3266
Libvirt
From: Daniel P. Berrange berra...@redhat.com
Make virKeepAlive use the virObject APIs for reference counting
Signed-off-by: Daniel P. Berrange berra...@redhat.com
---
src/libvirt_probes.d |4 +--
src/rpc/virkeepalive.c | 73 +-