• M
    daemonSetupNetworking: Don't leak services · 058d18bd
    Michal Privoznik 提交于
    When setting up the daemon networking, new services are created. These
    services then have sockets to listen on. Once created, the service
    objects are added to corresponding server object. However, during that
    process, server increases reference counter of the service object. So,
    at the end of the function, we should decrease it again. This way the
    service objects will have only 1 reference, but that's okay since
    servers are the only objects having a reference.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    058d18bd
libvirtd.c 48.8 KB