mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00: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:
|
||||
remoteDriverUnlock(priv);
|
||||
/* coverity[leaked_storage] - cbdata is not leaked */
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user