[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] sandbox: Fix double free when initializing HSv3 filenames
commit 2549b3e9233372556ae41c51b2e89c3ddb21a9ea
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date: Fri Aug 25 09:28:10 2017 -0400
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@xxxxxxxxxxxxxx>
---
src/or/main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/or/main.c b/src/or/main.c
index 38ebe3f25..5d51d1dea 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 */
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits