summaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-02-27 22:08:01 +0000
committerRoger Dingledine <arma@torproject.org>2005-02-27 22:08:01 +0000
commit3cef60a0f75f9e015860f801c4d737fedbe10191 (patch)
treef54d47192c373a7a3eef46b0f9e282ee3ce94e2a /src/or/rendservice.c
parenta1f1fa6ab23dad9e9571843e106e51e13c64ae1d (diff)
downloadtor-3cef60a0f75f9e015860f801c4d737fedbe10191.tar.gz
tor-3cef60a0f75f9e015860f801c4d737fedbe10191.zip
fix a minor memory leak
svn:r3704
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index f9c9c3e378..5f423b82c3 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -77,13 +77,11 @@ static void rend_service_free(rend_service_t *service)
tor_free(service);
}
-/** Release all the storage held in rend_service_list, and allocate a new,
- * empty rend_service_list.
+/** Release all the storage held in rend_service_list.
*/
void rend_service_free_all(void)
{
if (!rend_service_list) {
- rend_service_list = smartlist_create();
return;
}
SMARTLIST_FOREACH(rend_service_list, rend_service_t*, ptr,