[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #32667 [Core Tor/Tor]: CID 1456199: Resource leak in test_hs_control_store_permanent_creds()
#32667: CID 1456199: Resource leak in test_hs_control_store_permanent_creds()
--------------------------------+--------------------------------
Reporter: asn | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor: 0.4.3.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Keywords: tor-hs hs-auth
Actual Points: | Parent ID: #30381
Points: 0.1 | Reviewer: dgoulet
Sponsor: Sponsor27-must |
--------------------------------+--------------------------------
{{{
** CID 1456199: Resource leaks (RESOURCE_LEAK)
/src/test/test_hs_control.c: 534 in
test_hs_control_store_permanent_creds()
________________________________________________________________________________________________________
*** CID 1456199: Resource leaks (RESOURCE_LEAK)
/src/test/test_hs_control.c: 534 in
test_hs_control_store_permanent_creds()
528
529 #ifdef _WIN32
530 ret = mkdir(perm_creds_dir);
531 #else
532 ret = mkdir(perm_creds_dir, 0700);
533 #endif
>>> CID 1456199: Resource leaks (RESOURCE_LEAK)
>>> Variable "perm_creds_dir" going out of scope leaks the storage it
points to.
534 tt_int_op(ret, OP_EQ, 0);
535
536 get_options_mutable()->ClientOnionAuthDir = perm_creds_dir;
537 }
538
539 tor_free(args);
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32667>
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