diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-01-22 02:34:50 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-01-22 02:34:50 +0000 |
commit | 033e20ca0be4dc0181091951e88a9686528e93fc (patch) | |
tree | 8498a34647b60a2b122a72db222be8127ac7a1b9 /src/or/directory.c | |
parent | e0ae28d0cd69b5bc4fe3a58800702fd84b12d51f (diff) | |
download | tor-033e20ca0be4dc0181091951e88a9686528e93fc.tar.gz tor-033e20ca0be4dc0181091951e88a9686528e93fc.zip |
r9709@catbus: nickm | 2007-01-21 21:34:03 -0500
Fix memory leak on networkstatus 503.
svn:r9380
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 951a770af9..8231ef7bf7 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1689,9 +1689,11 @@ directory_handle_command_get(dir_connection_t *conn, char *headers, dlen = dirserv_estimate_data_size(dir_fps, 0, deflated); if (global_write_bucket_low(dlen, 2)) { log_info(LD_DIRSERV, - "Client asked for server descriptors, but we've been " + "Client asked for network status lists, but we've been " "writing too many bytes lately. Sending 503 Dir busy."); write_http_status_line(conn, 503, "Directory busy, try again later"); + SMARTLIST_FOREACH(dir_fps, char *, cp, tor_free(cp)); + smartlist_free(dir_fps); return 0; } |