Module Name: src
Committed By: christos
Date: Sun Sep 21 16:40:53 UTC 2014
Modified Files:
src/sys/arch/x86/x86: ipmi.c
Log Message:
fix leak.
To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/arch/x86/x86/ipmi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/ipmi.c
diff -u src/sys/arch/x86/x86/ipmi.c:1.57 src/sys/arch/x86/x86/ipmi.c:1.58
--- src/sys/arch/x86/x86/ipmi.c:1.57 Sun Aug 10 12:44:34 2014
+++ src/sys/arch/x86/x86/ipmi.c Sun Sep 21 12:40:53 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: ipmi.c,v 1.57 2014/08/10 16:44:34 tls Exp $ */
+/* $NetBSD: ipmi.c,v 1.58 2014/09/21 16:40:53 christos Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipmi.c,v 1.57 2014/08/10 16:44:34 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipmi.c,v 1.58 2014/09/21 16:40:53 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1209,6 +1209,7 @@ get_sdr(struct ipmi_softc *sc, uint16_t
psdr + offset, NULL)) {
printf("ipmi: get chunk : %d,%d fails\n",
offset, len);
+ free(psdr, M_DEVBUF);
return (-1);
}
}