[tor-commits] [tor/master] use the correct free fn. spotted by dgoulet

nickm at torproject.org nickm at torproject.org
Wed Jan 21 19:54:42 UTC 2015


commit 38b3f9a619a7e34cb0fe778235afb91953c84fe7
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Jan 21 14:54:38 2015 -0500

    use the correct free fn. spotted by dgoulet
---
 src/common/workqueue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/workqueue.c b/src/common/workqueue.c
index 77a4fbc..5da29d5 100644
--- a/src/common/workqueue.c
+++ b/src/common/workqueue.c
@@ -148,7 +148,7 @@ workqueue_entry_cancel(workqueue_entry_t *ent)
   tor_mutex_release(&ent->on_pool->lock);
 
   if (cancelled) {
-    tor_free(ent);
+    workqueue_entry_free(ent);
   }
   return result;
 }



More information about the tor-commits mailing list