diff options
author | Matthew Finkel <Matthew.Finkel@gmail.com> | 2013-10-09 22:49:46 +0000 |
---|---|---|
committer | Matthew Finkel <Matthew.Finkel@gmail.com> | 2013-10-09 23:16:57 +0000 |
commit | 528e3bf8921372db9a97a9c624288e44f756188a (patch) | |
tree | af60f97ec2bb81c730184812d34f73e4a17b0a64 | |
parent | 3b6c48328b03d7f0e639785fbdf268c0d973f16f (diff) | |
download | tor-528e3bf8921372db9a97a9c624288e44f756188a.tar tor-528e3bf8921372db9a97a9c624288e44f756188a.tar.gz |
Free the smartlist after parsing csv config option
Bugfix on 1293835440dd4debf6fbfc66e755d9b9384aa362, which implemented
6752: Not in any released tor.
-rw-r--r-- | src/or/confparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/confparse.c b/src/or/confparse.c index f2ada4f42..c5400a651 100644 --- a/src/or/confparse.c +++ b/src/or/confparse.c @@ -392,7 +392,7 @@ config_assign_value(const config_format_t *fmt, void *options, "Interval in '%s %s' is malformed or out of bounds.", c->key, c->value); SMARTLIST_FOREACH(csv_str, char *, cp, tor_free(cp)); - smartlist_clear(csv_str); + smartlist_free(csv_str); return -1; } csv_int = tor_malloc_zero(sizeof(int)); @@ -401,7 +401,7 @@ config_assign_value(const config_format_t *fmt, void *options, } SMARTLIST_FOREACH_END(str); SMARTLIST_FOREACH(csv_str, char *, cp, tor_free(cp)); - smartlist_clear(csv_str); + smartlist_free(csv_str); break; case CONFIG_TYPE_LINELIST: |