summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);