diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-08-04 21:58:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-08-04 21:58:10 +0000 |
commit | 7c11c4a14684f23babd5060931529f095b8f81d3 (patch) | |
tree | 1376da71d6f5dc84720637524c52f902c23c4681 /elf | |
parent | 01f7e9281469ade588b61111eac9911d9a48a1ff (diff) | |
download | glibc-7c11c4a14684f23babd5060931529f095b8f81d3.tar glibc-7c11c4a14684f23babd5060931529f095b8f81d3.tar.gz glibc-7c11c4a14684f23babd5060931529f095b8f81d3.tar.bz2 glibc-7c11c4a14684f23babd5060931529f095b8f81d3.zip |
(do_release_all): Add __libc_freeres_fn_section.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-close.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c index 500b9d57d3..ca60ae5abe 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -565,7 +565,7 @@ libc_hidden_def (_dl_close) #ifdef USE_TLS -static bool +static bool __libc_freeres_fn_section free_slotinfo (struct dtv_slotinfo_list **elemp) { size_t cnt; @@ -623,11 +623,12 @@ libc_freeres_fn (free_mem) /* There was no initial TLS setup, it was set up later when it used the normal malloc. */ free_slotinfo (&GL(dl_tls_dtv_slotinfo_list)); + else # endif - /* The first element of the list does not have to be deallocated. - It was allocated in the dynamic linker (i.e., with a different - malloc), and in the static library it's in .bss space. */ - free_slotinfo (&GL(dl_tls_dtv_slotinfo_list)->next); + /* The first element of the list does not have to be deallocated. + It was allocated in the dynamic linker (i.e., with a different + malloc), and in the static library it's in .bss space. */ + free_slotinfo (&GL(dl_tls_dtv_slotinfo_list)->next); } #endif } |