Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/shark/isa fix leak
details: https://anonhg.NetBSD.org/src/rev/ec6015d0b4ba
branches: trunk
changeset: 802583:ec6015d0b4ba
user: christos <christos%NetBSD.org@localhost>
date: Sun Sep 21 15:48:29 2014 +0000
description:
fix leak
diffstat:
sys/arch/shark/isa/isa_irqhandler.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 143fa51f2b95 -r ec6015d0b4ba sys/arch/shark/isa/isa_irqhandler.c
--- a/sys/arch/shark/isa/isa_irqhandler.c Sun Sep 21 15:46:44 2014 +0000
+++ b/sys/arch/shark/isa/isa_irqhandler.c Sun Sep 21 15:48:29 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isa_irqhandler.c,v 1.26 2014/02/22 18:56:25 matt Exp $ */
+/* $NetBSD: isa_irqhandler.c,v 1.27 2014/09/21 15:48:29 christos Exp $ */
/*
* Copyright 1997
@@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isa_irqhandler.c,v 1.26 2014/02/22 18:56:25 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isa_irqhandler.c,v 1.27 2014/09/21 15:48:29 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -320,8 +320,10 @@
ih->ih_arg = ih_arg;
ih->ih_flags = 0;
- if (irq_claim(irq, ih, group, name) != 0)
+ if (irq_claim(irq, ih, group, name) != 0) {
+ free(ih, M_DEVBUF);
return(NULL);
+ }
return(ih);
}
Home |
Main Index |
Thread Index |
Old Index