From 9cc0f8d5036ed18103710218a04dc2e3f01191cc Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Tue, 22 Jan 2013 09:41:02 -0500 Subject: [PATCH] remote: Avoid coverity[leaked_storage] message. Upon successful return of virNetClientStreamEventAddCallback() the allocated cbdata field will be freed by virNetClientStreamEventRemoveCallback() as cbOpaque using the free function remoteStreamCallbackFree(). --- src/remote/remote_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 3555dac9c8..341321b5a9 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -4816,6 +4816,7 @@ remoteStreamEventAddCallback(virStreamPtr st, cleanup: remoteDriverUnlock(priv); + /* coverity[leaked_storage] - cbdata is not leaked */ return ret; }