]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix memleak when failing to parse a CSV_INTERVAL.
authorNick Mathewson <nickm@torproject.org>
Sat, 15 Jun 2019 20:47:16 +0000 (16:47 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 15 Jun 2019 20:47:16 +0000 (16:47 -0400)
Fixes bug 30894; bugfix on 0.3.4.1-alpha

changes/bug30894 [new file with mode: 0644]
src/app/config/confparse.c

diff --git a/changes/bug30894 b/changes/bug30894
new file mode 100644 (file)
index 0000000..64c14c4
--- /dev/null
@@ -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.
index 8681f648da7e4ad3476d07a3707d4e69c793fbfd..729e7a447873d15bfcfe1d91a0379e5d3e7607bb 100644 (file)
@@ -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;