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);
             }
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to