Commit 4ab1d1c0 authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Fix memleak when failing to parse a CSV_INTERVAL.

Fixes bug 30894; bugfix on 0.3.4.1-alpha
parent b0fa1f4f
Loading
Loading
Loading
Loading

changes/bug30894

0 → 100644
+4 −0
Original line number Diff line number Diff line
  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.
+1 −0
Original line number Diff line number Diff line
@@ -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;