aboutsummaryrefslogtreecommitdiff
path: root/src/or/ext_orport.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2013-08-14 17:16:06 +0300
committerNick Mathewson <nickm@torproject.org>2013-08-15 12:03:38 -0400
commitf549e4c36d0658b6255d3b9cf7c56131d4a37a57 (patch)
tree6cb52935cd32ebafab09cbe9999bf02cdc2b08cb /src/or/ext_orport.c
parent33c3e60a376291faed073dcfb6c9b8a0098572a0 (diff)
downloadtor-f549e4c36d0658b6255d3b9cf7c56131d4a37a57.tar
tor-f549e4c36d0658b6255d3b9cf7c56131d4a37a57.tar.gz
Write some free_all functions to free the auth. cookies.
We started allocating space for them on the heap in the previous commit. Conflicts: src/or/ext_orport.h
Diffstat (limited to 'src/or/ext_orport.c')
-rw-r--r--src/or/ext_orport.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/ext_orport.c b/src/or/ext_orport.c
index 272fef4d1..fdcecacda 100644
--- a/src/or/ext_orport.c
+++ b/src/or/ext_orport.c
@@ -633,3 +633,11 @@ connection_ext_or_start_auth(or_connection_t *or_conn)
return 0;
}
+/** Free any leftover allocated memory of the ext_orport.c subsystem. */
+void
+ext_orport_free_all(void)
+{
+ if (ext_or_auth_cookie) /* Free the auth cookie */
+ tor_free(ext_or_auth_cookie);
+}
+