fixed memory leaks

though some of them are not really leaks when kalloc is in use.
This commit is contained in:
Heng Li
2017-06-06 21:45:55 -04:00
parent e6adb673f9
commit c1c946aa67
3 changed files with 8 additions and 2 deletions
+2
View File
@@ -60,6 +60,8 @@ mm_tbuf_t *mm_tbuf_init(void)
void mm_tbuf_destroy(mm_tbuf_t *b)
{
if (b == 0) return;
kfree(b->km, b->mini.a);
sdust_buf_destroy(b->sdb);
km_destroy(b->km_fixed);
km_destroy(b->km);
free(b);