diff --git a/src/or/main.c b/src/or/main.c
index 7d114d9f68f47c8f70fa5bd2dc31fad48409f210..025b5192b5fd0de95b6843f5d267830e751bccc1 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2826,7 +2826,8 @@ sandbox_init_filter(void)
     smartlist_t *logfiles = smartlist_new();
     tor_log_get_logfile_names(logfiles);
     SMARTLIST_FOREACH(logfiles, char *, logfile_name, {
-      sandbox_cfg_allow_open_filename(&cfg, logfile_name); /* steals reference */
+      /* steals reference */
+      sandbox_cfg_allow_open_filename(&cfg, logfile_name);
     });
     smartlist_free(logfiles);
   }