mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
virnet*: Don't unlock object in dispose
As of bba93d40 all of our RPC objects are derived from virObjectLockable. However, during rewrite some errors sneaked in. For instance, the dispose functions to virNetClient and virNetServerClient objects were not only freeing allocated memory, but unlocking themselves. This is wrong. Object should never disappear while locked. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
242e8c5472
commit
a663c34ad0
@ -622,8 +622,6 @@ void virNetClientDispose(void *obj)
|
||||
#endif
|
||||
|
||||
virNetMessageClear(&client->msg);
|
||||
|
||||
virObjectUnlock(client);
|
||||
}
|
||||
|
||||
|
||||
|
@ -866,7 +866,6 @@ void virNetServerClientDispose(void *obj)
|
||||
virObjectUnref(client->tlsCtxt);
|
||||
#endif
|
||||
virObjectUnref(client->sock);
|
||||
virObjectUnlock(client);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user