backport r11249

svn:r11250
This commit is contained in:
Roger Dingledine 2007-08-22 03:22:51 +00:00
parent a5b347e9f4
commit ee9cc158ba
2 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,8 @@ Changes in version 0.1.2.17 - 2007-08-xx
from tup.
- Fix a minor memory leak when we fail to find enough suitable
servers to choose a circuit.
- Stop leaking part of the descriptor when we run into a particularly
unparseable piece of it.
Changes in version 0.1.2.16 - 2007-08-01

View File

@ -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);