aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-08-25 09:28:10 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-25 09:28:10 -0400
commit2549b3e9233372556ae41c51b2e89c3ddb21a9ea (patch)
treedafbf552827cbbb8c509bdc21f8fdfbcb8d6de8e /src/or/main.c
parentf9cd870f50d770f629e370583b0e9df2f8844436 (diff)
downloadtor-2549b3e9233372556ae41c51b2e89c3ddb21a9ea.tar.gz
tor-2549b3e9233372556ae41c51b2e89c3ddb21a9ea.zip
sandbox: Fix double free when initializing HSv3 filenames
Don't free a reference that has been stolen. Fixes #23329 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 38ebe3f257..5d51d1dead 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -3583,7 +3583,6 @@ sandbox_init_filter(void)
/* steals references */
sandbox_cfg_allow_open_filename(&cfg, file_name);
sandbox_cfg_allow_open_filename(&cfg, tmp_name);
- tor_free(file_name);
});
SMARTLIST_FOREACH(dirs, char *, dir, {
/* steals reference */