* coff-pe-read.c (read_pe_exported_syms): Don't return without
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 4 Mar 2013 15:09:46 +0000 (15:09 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 4 Mar 2013 15:09:46 +0000 (15:09 +0000)
calling do_cleanup.

gdb/ChangeLog
gdb/coff-pe-read.c

index 848fa3d02cdced5428a60a69111fc260146b3432..f9d269f9f1c503c8e15df2bbe78cb901c002e580 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-04  Corinna Vinschen  <vinschen@redhat.com>
+
+       * coff-pe-read.c (read_pe_exported_syms): Don't return without
+       calling do_cleanup.
+
 2013-03-04  Luis Machado  <lgustavo@codesourcery.com>
 
        * tracepoint.c (build_traceframe_info): Add code for byte order.
index f9537384cded6d1c0b75aa2f9c0bf90b915afae8..c930bacebff5e115c2e5f867ecad1ad7b71636c7 100644 (file)
@@ -379,6 +379,7 @@ read_pe_exported_syms (struct objfile *objfile)
       /* This is not a recognized PE format file.  Abort now, because
         the code is untested on anything else.  *FIXME* test on
         further architectures and loosen or remove this test.  */
+      do_cleanups (back_to);
       return;
     }
 
@@ -392,6 +393,7 @@ read_pe_exported_syms (struct objfile *objfile)
 
   if (num_entries < 1)         /* No exports.  */
     {
+      do_cleanups (back_to);
       return;
     }
   if (is_pe64)
@@ -448,6 +450,7 @@ read_pe_exported_syms (struct objfile *objfile)
   if (export_size == 0)
     {
       /* Empty export table.  */
+      do_cleanups (back_to);
       return;
     }
 
This page took 0.027298 seconds and 4 git commands to generate.