From 419a4a99b524ca9639c26a37c7aee39c387f0626 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Ritschard Date: Sun, 13 Apr 2008 00:34:09 +0000 Subject: 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@ --- sys/dev/pci/drm/drm_drv.c | 1 + 1 file changed, 1 insertion(+) 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); } } -- cgit v1.2.3