mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
fix a minor memory leak
svn:r3704
This commit is contained in:
parent
a1f1fa6ab2
commit
3cef60a0f7
1 changed files with 1 additions and 3 deletions
|
@ -77,13 +77,11 @@ static void rend_service_free(rend_service_t *service)
|
|||
tor_free(service);
|
||||
}
|
||||
|
||||
/** Release all the storage held in rend_service_list, and allocate a new,
|
||||
* empty rend_service_list.
|
||||
/** Release all the storage held in rend_service_list.
|
||||
*/
|
||||
void rend_service_free_all(void)
|
||||
{
|
||||
if (!rend_service_list) {
|
||||
rend_service_list = smartlist_create();
|
||||
return;
|
||||
}
|
||||
SMARTLIST_FOREACH(rend_service_list, rend_service_t*, ptr,
|
||||
|
|
Loading…
Add table
Reference in a new issue