diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-09-04 11:24:08 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-09-04 11:24:08 +0200 |
commit | daeeb8e982a3463f4a866e805b64f214d9f44160 (patch) | |
tree | 64888a5b01ab18f6ffca311af766c242f8c3b1bc /lib/mempool.c | |
parent | 05198c12f48c9d4a65ee6d1d4117bd8067a71131 (diff) |
Clear memory allocated by ralloc().
This also fixes bug that timer->recurrent was not cleared
in tm_new() and unexpected recurrence of startup timer
in BGP confused state machine and caused crash.
Diffstat (limited to 'lib/mempool.c')
-rw-r--r-- | lib/mempool.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/mempool.c b/lib/mempool.c index e6f277b9..03a6e6ba 100644 --- a/lib/mempool.c +++ b/lib/mempool.c @@ -64,13 +64,9 @@ linpool *lp_new(pool *p, unsigned blk) { linpool *m = ralloc(p, &lp_class); - m->ptr = m->end = NULL; - m->first = m->current = NULL; m->plast = &m->first; - m->first_large = NULL; m->chunk_size = blk; m->threshold = 3*blk/4; - m->total = m->total_large = 0; return m; } |