Skip to content
Snippets Groups Projects
Closed (moved) Memory leak in rend_config_services()
  • View options
  • Memory leak in rend_config_services()

  • View options
  • Closed (moved) Issue created by Nick Mathewson
    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

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading