summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-08-22 03:22:51 +0000
committerRoger Dingledine <arma@torproject.org>2007-08-22 03:22:51 +0000
commitee9cc158ba082676a710bc755c02b9120dd4be13 (patch)
treebbf39134bcab8fce38424a8e3c52282e69f9b7f7 /src/or
parenta5b347e9f42caf77989e0fb7f76262ce080069e0 (diff)
downloadtor-ee9cc158ba082676a710bc755c02b9120dd4be13.tar.gz
tor-ee9cc158ba082676a710bc755c02b9120dd4be13.zip
backport r11249
svn:r11250
Diffstat (limited to 'src/or')
-rw-r--r--src/or/routerparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index ff6bff53b1..7862a07ae9 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1747,6 +1747,7 @@ tokenize_string(const char *start, const char *end, smartlist_t *out,
tok = get_next_token(s, where);
if (tok->tp == _ERR) {
log_warn(LD_DIR, "parse error: %s", tok->error);
+ token_free(tok);
return -1;
}
smartlist_add(out, tok);