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
+1
View File
@@ -62,6 +62,7 @@ sdust_buf_t *sdust_buf_init(void *km)
void sdust_buf_destroy(sdust_buf_t *buf)
{
if (buf == 0) return;
kdq_destroy(int, buf->w);
kfree(buf->km, buf->P.a); kfree(buf->km, buf->res.a); kfree(buf->km, buf);
}