Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #32667

Closed (moved)
(moved)
Open
Created Dec 04, 2019 by George Kadianakis@asn

CID 1456199: Resource leak 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()

________________________________________________________________________________________________________
*** 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);
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking