Explorar o código

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>
David Goulet %!s(int64=8) %!d(string=hai) anos
pai
achega
2549b3e923
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      src/or/main.c

+ 0 - 1
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 */