--- ip_dummynet.c.orig	Thu Dec  4 19:01:30 2003
+++ ip_dummynet.c	Thu Dec  4 19:02:30 2003
@@ -1386,7 +1386,6 @@
     heap_free(&ready_heap);
     heap_free(&wfq_ready_heap);
     heap_free(&extract_heap);
-    DUMMYNET_UNLOCK();
 
     /*
      * Now purge all queued pkts and delete all pipes
@@ -1403,6 +1402,7 @@
 	p = p->next ;
 	free(curr_p, M_DUMMYNET);
     }
+    DUMMYNET_UNLOCK();
 }
 
 
