aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_intropoint.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-08-03 15:51:24 +0300
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:34 -0400
commit3ce69a58ce908ea88443c1321a7e4378f059a897 (patch)
tree6ea3e0a9a461e331b043fff870a99df0fb22d3ea /src/or/hs_intropoint.c
parent3bc52dae8932b42c809e2b233d5c194b74fa4f9b (diff)
downloadtor-3ce69a58ce908ea88443c1321a7e4378f059a897.tar.gz
tor-3ce69a58ce908ea88443c1321a7e4378f059a897.zip
Rename some free() functions that are actually clear().
Diffstat (limited to 'src/or/hs_intropoint.c')
-rw-r--r--src/or/hs_intropoint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/hs_intropoint.c b/src/or/hs_intropoint.c
index 25c43b3ad3..a0453841f9 100644
--- a/src/or/hs_intropoint.c
+++ b/src/or/hs_intropoint.c
@@ -595,9 +595,10 @@ hs_intro_received_introduce1(or_circuit_t *circ, const uint8_t *request,
return -1;
}
-/* Free the given intropoint object ip. */
+/* Clear memory allocated by the given intropoint object ip (but don't free the
+ * object itself). */
void
-hs_intro_free_content(hs_intropoint_t *ip)
+hs_intropoint_clear(hs_intropoint_t *ip)
{
if (ip == NULL) {
return;