Module Name: src
Committed By: maxv
Date: Sun Jun 25 12:11:30 UTC 2017
Modified Files:
src/sys/arch/arm/imx: imx51_ipuv3.c
Log Message:
memory leak, found by Mootja
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/imx/imx51_ipuv3.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/arm/imx/imx51_ipuv3.c
diff -u src/sys/arch/arm/imx/imx51_ipuv3.c:1.4 src/sys/arch/arm/imx/imx51_ipuv3.c:1.5
--- src/sys/arch/arm/imx/imx51_ipuv3.c:1.4 Mon Dec 21 04:26:28 2015
+++ src/sys/arch/arm/imx/imx51_ipuv3.c Sun Jun 25 12:11:30 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: imx51_ipuv3.c,v 1.4 2015/12/21 04:26:28 hkenken Exp $ */
+/* $NetBSD: imx51_ipuv3.c,v 1.5 2017/06/25 12:11:30 maxv Exp $ */
/*
* Copyright (c) 2011, 2012 Genetec Corporation. All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: imx51_ipuv3.c,v 1.4 2015/12/21 04:26:28 hkenken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: imx51_ipuv3.c,v 1.5 2017/06/25 12:11:30 maxv Exp $");
#include "opt_imx51_ipuv3.h"
@@ -949,6 +949,7 @@ imx51_ipuv3_new_screen(struct imx51_ipuv
aprint_error_dev(sc->dev,
"failed to allocate %u bytes of video memory: %d\n",
scr->stride * height, error);
+ free(scr, M_DEVBUF);
return error;
}