mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Fix a leak in test_have_enough_mem_for_dircache
This commit is contained in:
parent
73c433a48a
commit
ba0ddd7467
1 changed files with 2 additions and 2 deletions
|
@ -210,7 +210,7 @@ test_have_enough_mem_for_dircache(void *arg)
|
||||||
{
|
{
|
||||||
(void)arg;
|
(void)arg;
|
||||||
or_options_t *opt=NULL;
|
or_options_t *opt=NULL;
|
||||||
or_options_t *dflt;
|
or_options_t *dflt=NULL;
|
||||||
config_line_t *cl=NULL;
|
config_line_t *cl=NULL;
|
||||||
char *msg=NULL;;
|
char *msg=NULL;;
|
||||||
int r;
|
int r;
|
||||||
|
@ -292,7 +292,7 @@ test_have_enough_mem_for_dircache(void *arg)
|
||||||
done:
|
done:
|
||||||
if (msg)
|
if (msg)
|
||||||
tor_free(msg);
|
tor_free(msg);
|
||||||
tor_free(dflt);
|
or_options_free(dflt);
|
||||||
or_options_free(opt);
|
or_options_free(opt);
|
||||||
config_free_lines(cl);
|
config_free_lines(cl);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue