]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virnet*: Don't unlock object in dispose
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 10 Mar 2015 10:06:35 +0000 (11:06 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 10 Mar 2015 11:36:08 +0000 (12:36 +0100)
commita663c34ad015e7911a885a4f1badef54a9ea2677
treea3dd8e3439e1afc2ed07189f4e11a3921dad8074
parent242e8c54728abc464b92d55a5ce76121803c97e4
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>
src/rpc/virnetclient.c
src/rpc/virnetserverclient.c