From 033e20ca0be4dc0181091951e88a9686528e93fc Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 22 Jan 2007 02:34:50 +0000 Subject: r9709@catbus: nickm | 2007-01-21 21:34:03 -0500 Fix memory leak on networkstatus 503. svn:r9380 --- src/or/directory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/or/directory.c') 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; } -- cgit v1.2.3-54-g00ecf