diff options
author | glebius <glebius@FreeBSD.org> | 2004-11-19 20:23:46 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2004-11-19 20:23:46 +0000 |
commit | 4eeaf10421c65b3476f40a8a8c61b7ce7e717ef1 (patch) | |
tree | 7ce2f920723bb227d7ea190f0ed2794d1719438d /sys/netgraph/atm | |
parent | 9f3a10cb66b4c3253727b2fc6b4a482de75ba1f2 (diff) | |
download | FreeBSD-src-4eeaf10421c65b3476f40a8a8c61b7ce7e717ef1.zip FreeBSD-src-4eeaf10421c65b3476f40a8a8c61b7ce7e717ef1.tar.gz |
Cancel pending timeout before scheduling a new one. This fixes
item leak, I've introduced with previous change.
Approved by: julian (mentor)
Diffstat (limited to 'sys/netgraph/atm')
-rw-r--r-- | sys/netgraph/atm/sscop/ng_sscop_cust.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/atm/sscop/ng_sscop_cust.h b/sys/netgraph/atm/sscop/ng_sscop_cust.h index 6a1b403..fd2a892 100644 --- a/sys/netgraph/atm/sscop/ng_sscop_cust.h +++ b/sys/netgraph/atm/sscop/ng_sscop_cust.h @@ -111,6 +111,7 @@ typedef struct callout sscop_timer_t; ng_untimeout(&(S)->t_##T, (S)->aarg); \ } while (0) #define TIMER_RESTART(S, T) do { \ + TIMER_STOP(S, T); \ ng_timeout(&(S)->t_##T, (S)->aarg, NULL, \ hz * (S)->timer##T / 1000, T##_func, (S), 0); \ } while (0) |