[tor-bugs] #28989 [Core Tor/Tor]: test_hs_service: CID 1442277: Resource leaks (RESOURCE_LEAK)

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Jan 4 10:29:35 UTC 2019


#28989: test_hs_service: CID 1442277:  Resource leaks  (RESOURCE_LEAK)
------------------------------+--------------------------------
     Reporter:  asn           |      Owner:  (none)
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.4.0.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  tor-hs coverity
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 {{{
 /src/test/test_hs_service.c: 1657 in test_build_descriptors()
 1651       {
 1652         hs_service_t *service = helper_create_service();
 1653         service_descriptor_free(service->desc_current);
 1654         service->desc_current = NULL;
 1655
 1656         build_all_descriptors(now);
 >>>     CID 1442277:  Resource leaks  (RESOURCE_LEAK)
 >>>     Variable "service" going out of scope leaks the storage it points
 to.
 1657         tt_assert(service->desc_current);
 1658         tt_assert(service->desc_current->desc);
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28989>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list