Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/imx memory leak, found by Mootja



details:   https://anonhg.NetBSD.org/src/rev/72e1eab59632
branches:  trunk
changeset: 354685:72e1eab59632
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Jun 25 12:11:30 2017 +0000

description:
memory leak, found by Mootja

diffstat:

 sys/arch/arm/imx/imx51_ipuv3.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r cabd70e74e75 -r 72e1eab59632 sys/arch/arm/imx/imx51_ipuv3.c
--- a/sys/arch/arm/imx/imx51_ipuv3.c    Sun Jun 25 12:07:23 2017 +0000
+++ b/sys/arch/arm/imx/imx51_ipuv3.c    Sun Jun 25 12:11:30 2017 +0000
@@ -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 @@
                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;
        }
 



Home | Main Index | Thread Index | Old Index