Introduce an hs_ob_free_all() function.

This commit is contained in:
George Kadianakis 2020-01-23 00:31:29 +02:00
parent 0133169481
commit 635f58bad2
2 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,7 @@
#include "feature/hs/hs_client.h"
#include "feature/hs/hs_common.h"
#include "feature/hs/hs_dos.h"
#include "feature/hs/hs_ob.h"
#include "feature/hs/hs_ident.h"
#include "feature/hs/hs_service.h"
#include "feature/hs_common/shared_random_client.h"
@ -1829,6 +1830,7 @@ hs_free_all(void)
hs_service_free_all();
hs_cache_free_all();
hs_client_free_all();
hs_ob_free_all();
}
/** For the given origin circuit circ, decrement the number of rendezvous

View File

@ -394,3 +394,10 @@ hs_ob_refresh_keys(hs_service_t *service)
service->ob_subcreds = ob_subcreds;
service->n_ob_subcreds = num_subcreds;
}
/** Free any memory allocated by the onionblance subsystem. */
void
hs_ob_free_all(void)
{
config_mgr_free(config_options_mgr);
}