summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libelf/libelf_allocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libelf/libelf_allocate.c b/lib/libelf/libelf_allocate.c
index 834e0dd..1fa1eee 100644
--- a/lib/libelf/libelf_allocate.c
+++ b/lib/libelf/libelf_allocate.c
@@ -191,7 +191,7 @@ _libelf_release_scn(Elf_Scn *s)
d = _libelf_release_data(d);
}
- STAILQ_FOREACH_SAFE(d, &s->s_data, d_next, td) {
+ STAILQ_FOREACH_SAFE(d, &s->s_rawdata, d_next, td) {
assert((d->d_flags & LIBELF_F_MALLOCED) == 0);
STAILQ_REMOVE(&s->s_rawdata, d, _Elf_Data, d_next);
d = _libelf_release_data(d);
OpenPOWER on IntegriCloud