commit 00acccac644c20803d11ef7e162ae327eb834cf7
parent e4f66bf7ff62a8669341d239ef9d705f320b28a5
Author: George Kadianakis <desnacked@riseup.net>
Date: Wed, 26 Jun 2019 10:51:12 +0300
Merge branch 'tor-github/pr/1114' into maint-0.4.1
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/changes/bug30894 b/changes/bug30894
@@ -0,0 +1,4 @@
+ o Minor bugfixes (memory leaks):
+ - Fix a trivial memory leak when parsing an invalid value
+ from a download schedule in the configuration. Fixes bug
+ 30894; bugfix on 0.3.4.1-alpha.
diff --git 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;