X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libdw%2Fframe-cache.c;h=5b6afb5d2e623ecab815fde13a04d9eb16c87fca;hb=82c3b58b54026d061a4d81ad95f3023d5d883ab2;hp=54a1cc9afde158d076939d335ea30f1ddecbdf24;hpb=a286dd013ef8d46edf013efc0908822a59d8ac81;p=platform%2Fupstream%2Felfutils.git diff --git a/libdw/frame-cache.c b/libdw/frame-cache.c index 54a1cc9..5b6afb5 100644 --- a/libdw/frame-cache.c +++ b/libdw/frame-cache.c @@ -1,5 +1,5 @@ /* Frame cache handling. - Copyright (C) 2009 Red Hat, Inc. + Copyright (C) 2009, 2015 Red Hat, Inc. This file is part of elfutils. This file is free software; you can redistribute it and/or modify @@ -30,6 +30,7 @@ # include #endif +#include "../libebl/libebl.h" #include "cfi.h" #include #include @@ -63,4 +64,7 @@ __libdw_destroy_frame_cache (Dwarf_CFI *cache) tdestroy (cache->fde_tree, free_fde); tdestroy (cache->cie_tree, free_cie); tdestroy (cache->expr_tree, free_expr); + + if (cache->ebl != NULL && cache->ebl != (void *) -1l) + ebl_closebackend (cache->ebl); }