summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_drv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drm_drv.c')
-rw-r--r--sys/dev/pci/drm/drm_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c
index 0be2df47f88..a352d67ccbe 100644
--- a/sys/dev/pci/drm/drm_drv.c
+++ b/sys/dev/pci/drm/drm_drv.c
@@ -432,6 +432,7 @@ drm_lastclose(drm_device_t *dev)
for ( i = 0 ; i < DRM_HASH_SIZE ; i++ ) {
while ((pt = TAILQ_FIRST(&dev->magiclist[i])) != NULL) {
TAILQ_REMOVE(&dev->magiclist[i], pt, link);
+ free(pt, M_DRM);
}
}