From 4ab1d1c0c44a887417b04fc75b1b11bf246f2bb5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 15 Jun 2019 16:47:16 -0400 Subject: Fix memleak when failing to parse a CSV_INTERVAL. Fixes bug 30894; bugfix on 0.3.4.1-alpha --- src/app/config/confparse.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf