diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2004-01-21 18:05:38 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2004-01-21 18:05:38 +0000 |
| commit | b5897e3235823aad2dbce92878c123a2044e74ea (patch) | |
| tree | f01de892a070f732fe28d76239640653f2994c5f /sys/net | |
| parent | 9d0be849128fcb445b17a6c7f05ae7181b52af22 (diff) | |
Notes
Diffstat (limited to 'sys/net')
| -rw-r--r-- | sys/net/if_ppp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index c9a8f8f98318..e0d24c1d623a 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -235,6 +235,8 @@ ppp_clone_destroy(struct ifnet *ifp) mtx_destroy(&sc->sc_rawq.ifq_mtx); mtx_destroy(&sc->sc_fastq.ifq_mtx); mtx_destroy(&sc->sc_inq.ifq_mtx); + + free(sc, M_PPP); } static int @@ -242,6 +244,7 @@ ppp_modevent(module_t mod, int type, void *data) { switch (type) { case MOD_LOAD: + LIST_INIT(&ppp_softc_list); if_clone_attach(&ppp_cloner); netisr_register(NETISR_PPP, (netisr_t *)pppintr, NULL, 0); |
