Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/drm Destroy, don't leak, events when d...
details: https://anonhg.NetBSD.org/src/rev/24b161e6b482
branches: trunk
changeset: 329890:24b161e6b482
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Jun 13 00:47:08 2014 +0000
description:
Destroy, don't leak, events when done with them.
diffstat:
sys/external/bsd/drm2/drm/drm_drv.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r de6061731e9f -r 24b161e6b482 sys/external/bsd/drm2/drm/drm_drv.c
--- a/sys/external/bsd/drm2/drm/drm_drv.c Fri Jun 13 00:46:29 2014 +0000
+++ b/sys/external/bsd/drm2/drm/drm_drv.c Fri Jun 13 00:47:08 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_drv.c,v 1.4 2014/05/01 15:19:16 riastradh Exp $ */
+/* $NetBSD: drm_drv.c,v 1.5 2014/06/13 00:47:08 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.4 2014/05/01 15:19:16 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.5 2014/06/13 00:47:08 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -638,6 +638,7 @@
error = uiomove(event->event, event->event->length, uio);
if (error) /* XXX Requeue the event? */
break;
+ (*event->destroy)(event);
}
/* Success! */
Home |
Main Index |
Thread Index |
Old Index