[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #20987 [Core Tor/Tor]: Memory leak in rend_config_services()



#20987: Memory leak in rend_config_services()
------------------------------+--------------------------------
     Reporter:  nickm         |      Owner:
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.0.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:  .1            |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 {{{
 options/validate__rend: [forking]
 =================================================================
 ==15407==ERROR: LeakSanitizer: detected memory leaks

 Direct leak of 16 byte(s) in 1 object(s) allocated from:
     #0 0x7f41e571be50 in malloc (/lib64/libasan.so.3+0xc6e50)
     #1 0x559322a5a86a in tor_malloc_ src/common/util.c:150
     #2 0x559322a32725 in smartlist_new__real src/common/container.c:34
     #3 0x559322911336 in rend_config_services src/or/rendservice.c:562
     #4 0x5593226fea9a in options_validate src/or/config.c:4012
     #5 0x559322505170 in test_options_validate__rend
 src/test/test_options.c:2741
     #6 0x559322626cf8 in testcase_run_bare_ src/ext/tinytest.c:106
     #7 0x5593226271f6 in testcase_run_forked_ src/ext/tinytest.c:190
     #8 0x5593226271f6 in testcase_run_one src/ext/tinytest.c:248
     #9 0x5593226286e5 in tinytest_main src/ext/tinytest.c:435
     #10 0x5593222de004 in main src/test/testing_common.c:313
     #11 0x7f41e2cef400 in __libc_start_main (/lib64/libc.so.6+0x20400)

 Indirect leak of 128 byte(s) in 1 object(s) allocated from:
     #0 0x7f41e571be50 in malloc (/lib64/libasan.so.3+0xc6e50)
     #1 0x559322a5a86a in tor_malloc_ src/common/util.c:150
     #2 0x559322a5a911 in tor_malloc_zero_ src/common/util.c:178
     #3 0x559322a327c5 in smartlist_new__real src/common/container.c:37
     #4 0x559322911336 in rend_config_services src/or/rendservice.c:562
     #5 0x5593226fea9a in options_validate src/or/config.c:4012
     #6 0x559322505170 in test_options_validate__rend
 src/test/test_options.c:2741
     #7 0x559322626cf8 in testcase_run_bare_ src/ext/tinytest.c:106
     #8 0x5593226271f6 in testcase_run_forked_ src/ext/tinytest.c:190
     #9 0x5593226271f6 in testcase_run_one src/ext/tinytest.c:248
     #10 0x5593226286e5 in tinytest_main src/ext/tinytest.c:435
     #11 0x5593222de004 in main src/test/testing_common.c:313
     #12 0x7f41e2cef400 in __libc_start_main (/lib64/libc.so.6+0x20400)

 SUMMARY: AddressSanitizer: 144 byte(s) leaked in 2 allocation(s).
 OK
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20987>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs