summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_drv.c
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2008-04-13 00:34:09 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2008-04-13 00:34:09 +0000
commit419a4a99b524ca9639c26a37c7aee39c387f0626 (patch)
tree3926bff66dae6e174b82be77004d0d92eb994974 /sys/dev/pci/drm/drm_drv.c
parent92852e776145a946e0417692554a33a60ad36f4c (diff)
bring back a free call which was left out when moving from handrolled lists
to tailqs. this plugs a tiny memleak. ``nice catch'' and ok oga@
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);
}
}