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:
Michal Privoznik 2015-03-10 11:06:35 +01:00
parent 242e8c5472
commit a663c34ad0
2 changed files with 0 additions and 3 deletions

View File

@ -622,8 +622,6 @@ void virNetClientDispose(void *obj)
#endif
virNetMessageClear(&client->msg);
virObjectUnlock(client);
}

View File

@ -866,7 +866,6 @@ void virNetServerClientDispose(void *obj)
virObjectUnref(client->tlsCtxt);
#endif
virObjectUnref(client->sock);
virObjectUnlock(client);
}