diff options
Diffstat (limited to 'libdw/dwarf_end.c')
-rw-r--r-- | libdw/dwarf_end.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libdw/dwarf_end.c b/libdw/dwarf_end.c index 60c9716e..fda37fc1 100644 --- a/libdw/dwarf_end.c +++ b/libdw/dwarf_end.c @@ -1,5 +1,5 @@ /* Release debugging handling context. - Copyright (C) 2002, 2003, 2004, 2005 Red Hat, Inc. + Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -56,7 +56,7 @@ #include <stdlib.h> #include "libdwP.h" - +#include "cfi.h" static void @@ -82,6 +82,10 @@ dwarf_end (dwarf) { if (dwarf != NULL) { + if (dwarf->cfi != NULL) + /* Clean up the CFI cache. */ + __libdw_destroy_frame_cache (dwarf->cfi); + /* The search tree for the CUs. NB: the CU data itself is allocated separately, but the abbreviation hash tables need to be handled. */ |