aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-18 15:00:13 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-18 15:00:13 +0000
commit4911ec627b22fb72ec616a18298014780235c396 (patch)
tree3c20d47e992de26f02a3403b8e325a60cf2cd5e8 /src/or/main.c
parent9c3d17ebb54cf408bc12fa08376e3bc784ffb8ab (diff)
downloadtor-4911ec627b22fb72ec616a18298014780235c396.tar.gz
tor-4911ec627b22fb72ec616a18298014780235c396.zip
Call release_lockfile() before exiting.
svn:r17679
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 13404cd067..3427cfd292 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1963,6 +1963,9 @@ tor_free_all(int postfork)
if (active_linked_connection_lst)
smartlist_free(active_linked_connection_lst);
tor_free(timeout_event);
+ if (!postfork) {
+ release_lockfile();
+ }
/* Stuff in util.c and address.c*/
if (!postfork) {
escaped(NULL);