mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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().
This commit is contained in:
parent
6c2e4c3856
commit
9cc0f8d503
@ -4816,6 +4816,7 @@ remoteStreamEventAddCallback(virStreamPtr st,
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
remoteDriverUnlock(priv);
|
remoteDriverUnlock(priv);
|
||||||
|
/* coverity[leaked_storage] - cbdata is not leaked */
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user