mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-26 07:55:01 +00:00
fix a memory leak when deleting RED queues
This commit is contained in:
parent
1e806970ff
commit
6a82d14731
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204754
@ -595,6 +595,12 @@ fsk_detach(struct dn_fsk *fs, int flags)
|
||||
h = fs->sched ? &fs->sched->fsk_list : &dn_cfg.fsu;
|
||||
SLIST_REMOVE(h, fs, dn_fsk, sch_chain);
|
||||
}
|
||||
/* Free the RED parameters, they will be recomputed on
|
||||
* subsequent attach if needed.
|
||||
*/
|
||||
if (fs->w_q_lookup)
|
||||
free(fs->w_q_lookup, M_DUMMYNET);
|
||||
fs->w_q_lookup = NULL;
|
||||
qht_delete(fs, flags);
|
||||
if (fs->sched && fs->sched->fp->free_fsk)
|
||||
fs->sched->fp->free_fsk(fs);
|
||||
|
Loading…
Reference in New Issue
Block a user