VirtualBox

Changeset 79795 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jul 15, 2019 2:29:00 PM (5 years ago)
Author:
vboxsync
Message:

Main/HostDnsService: Plug event semaphore leak on destruction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostDnsService.cpp

    r78941 r79795  
    8383        : pProxy(NULL)
    8484        , fThreaded(aThreaded)
     85        , hMonitorThreadEvent(NIL_RTSEMEVENT)
     86        , hMonitorThread(NIL_RTTHREAD)
    8587    {}
    8688
     
    198200        if (RT_FAILURE(rc))
    199201            LogRel(("HostDnsMonitor: waiting for thread failed with rc=%Rrc\n", rc));
     202
     203        if (m->hMonitorThreadEvent != NIL_RTSEMEVENT)
     204        {
     205            RTSemEventDestroy(m->hMonitorThreadEvent);
     206            m->hMonitorThreadEvent = NIL_RTSEMEVENT;
     207        }
    200208    }
    201209
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette