nouveau: fix leak of nouveau_mman structs
authorBen Skeggs <bskeggs@redhat.com>
Tue, 1 Mar 2011 04:39:04 +0000 (14:39 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 1 Mar 2011 07:22:53 +0000 (17:22 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
src/gallium/drivers/nouveau/nouveau_mm.c

index 332b8dc02e3d12c08904f362136a3e261cdd25e9..7edeb4d21d66d32c0705cfb35fb93210bc1446d6 100644 (file)
@@ -282,5 +282,7 @@ nouveau_mm_destroy(struct nouveau_mman *cache)
       nouveau_mm_free_slabs(&cache->bucket[i].used);
       nouveau_mm_free_slabs(&cache->bucket[i].full);
    }
+
+   FREE(cache);
 }