Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Mar 2012 15:07:36 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org
Subject:   svn commit: r233551 - vendor-sys/acpica/dist/source/components/parser
Message-ID:  <201203271507.q2RF7aFx091069@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Tue Mar 27 15:07:35 2012
New Revision: 233551
URL: http://svn.freebsd.org/changeset/base/233551

Log:
  Fix two possible memory leaks in error path.
  
  https://github.com/otcshare/acpica/commit/651031314f26bcfa32ee070014c841afa4cee094
  
  Obtained from:	ACPICA

Modified:
  vendor-sys/acpica/dist/source/components/parser/psargs.c

Modified: vendor-sys/acpica/dist/source/components/parser/psargs.c
==============================================================================
--- vendor-sys/acpica/dist/source/components/parser/psargs.c	Tue Mar 27 15:02:20 2012	(r233550)
+++ vendor-sys/acpica/dist/source/components/parser/psargs.c	Tue Mar 27 15:07:35 2012	(r233551)
@@ -672,6 +672,7 @@ AcpiPsGetNextField (
                 Arg = AcpiPsAllocOp (AML_INT_BYTELIST_OP);
                 if (!Arg)
                 {
+                    AcpiPsFreeOp (Field);
                     return_PTR (NULL);
                 }
 
@@ -717,6 +718,7 @@ AcpiPsGetNextField (
             Arg = AcpiPsAllocOp (AML_INT_NAMEPATH_OP);
             if (!Arg)
             {
+                AcpiPsFreeOp (Field);
                 return_PTR (NULL);
             }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203271507.q2RF7aFx091069>