aboutsummaryrefslogtreecommitdiff
path: root/src/feature/api/tor_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/api/tor_api.c')
-rw-r--r--src/feature/api/tor_api.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/feature/api/tor_api.c b/src/feature/api/tor_api.c
index efc4fdf8d9..c9f4f87074 100644
--- a/src/feature/api/tor_api.c
+++ b/src/feature/api/tor_api.c
@@ -124,8 +124,7 @@ tor_main_configuration_free(tor_main_configuration_t *cfg)
if (cfg == NULL)
return;
if (cfg->argv_owned) {
- int i;
- for (i = 0; i < cfg->argc_owned; ++i) {
+ for (int i = 0; i < cfg->argc_owned; ++i) {
raw_free(cfg->argv_owned[i]);
}
raw_free(cfg->argv_owned);