* dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
authorTom Tromey <tromey@redhat.com>
Fri, 3 Aug 2012 20:52:47 +0000 (20:52 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 3 Aug 2012 20:52:47 +0000 (20:52 +0000)
return.

gdb/ChangeLog
gdb/dwarf2-frame.c

index b4c15458011731597c1c07784cdb4677d3e39527..336ab5edf7e0d2d00b994444da6b73af011c399d 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-03  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
+       return.
+
 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
        * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
index 01786efb7bd4149567d99093dcdeec06a6c44f32..741a10333e36915d1d5f31bff31b5f32c7e13ed7 100644 (file)
@@ -1110,6 +1110,7 @@ dwarf2_frame_cache (struct frame_info *this_frame, void **this_cache)
       if (ex.error == NOT_AVAILABLE_ERROR)
        {
          cache->unavailable_retaddr = 1;
+         do_cleanups (old_chain);
          return cache;
        }