summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2010-02-01 17:49:45 +0000
committerpaulo <paul@bayleaf.org.uk>2010-02-01 17:49:45 +0000
commit3539f06bfcc040cfd42833a5a91e85999930ea1e (patch)
tree4970cd3a43d6f80e5fa1678b1a59ac2c22ff451e /lib
parent6fded334f74bbb3271c2293636677db27f86ec42 (diff)
downloadquagga-3539f06bfcc040cfd42833a5a91e85999930ea1e.tar.bz2
quagga-3539f06bfcc040cfd42833a5a91e85999930ea1e.tar.xz
Free nexus's queue and thread signal.
Diffstat (limited to 'lib')
-rw-r--r--lib/qpnexus.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/qpnexus.c b/lib/qpnexus.c
index 5a243d0f..96615253 100644
--- a/lib/qpnexus.c
+++ b/lib/qpnexus.c
@@ -88,9 +88,11 @@ qpn_free(qpn_nexus qpn)
qps_file_free(qf);
}
- /* TODO: free qpn->queue */
- /* TODO: free qpn->mts */
+ if (qpn->queue != NULL)
+ qpn->queue = mqueue_reset(qpn->queue, 1);
+ if (qpn->mts != NULL)
+ qpn->mts = mqueue_thread_signal_reset(qpn->mts, 1);
XFREE(MTYPE_QPN_NEXUS, qpn) ;