aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-06-15 16:47:16 -0400
committerNick Mathewson <nickm@torproject.org>2019-06-15 16:47:16 -0400
commit4ab1d1c0c44a887417b04fc75b1b11bf246f2bb5 (patch)
tree0e648ceb6482827d985054d57662ed27acc0f038 /src/app
parentb0fa1f4fb0b4f6a474b20e40e2810936c0577cc2 (diff)
downloadtor-4ab1d1c0c44a887417b04fc75b1b11bf246f2bb5.tar.gz
tor-4ab1d1c0c44a887417b04fc75b1b11bf246f2bb5.zip
Fix memleak when failing to parse a CSV_INTERVAL.
Fixes bug 30894; bugfix on 0.3.4.1-alpha
Diffstat (limited to 'src/app')
-rw-r--r--src/app/config/confparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/config/confparse.c b/src/app/config/confparse.c
index 8681f648da..729e7a4478 100644
--- a/src/app/config/confparse.c
+++ b/src/app/config/confparse.c
@@ -225,6 +225,7 @@ config_assign_value(const config_format_t *fmt, void *options,
tor_asprintf(msg,
"Interval '%s %s' is malformed or out of bounds.",
c->key, c->value);
+ tor_free(tmp);
return -1;
}
*(int *)lvalue = i;