public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/google/grte/v5-2.27/master] Fix memory leak in TLS allocation
@ 2020-10-21 20:39 Stan Shebs
  0 siblings, 0 replies; 2+ messages in thread
From: Stan Shebs @ 2020-10-21 20:39 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a1e8e5b5d69dcaff1474f1d91996b28a76dd7226

commit a1e8e5b5d69dcaff1474f1d91996b28a76dd7226
Author: James Y Knight <jyknight@google.com>
Date:   Wed Oct 21 13:38:14 2020 -0700

    Fix memory leak in TLS allocation

Diff:
---
 elf/dl-tls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/dl-tls.c b/elf/dl-tls.c
index 0ebd1fa040..c4c3bab83a 100644
--- a/elf/dl-tls.c
+++ b/elf/dl-tls.c
@@ -673,6 +673,7 @@ signal_safe_allocate_and_init (dtv_t *dtv, struct link_map *map)
 	  '\0', map->l_tls_blocksize - map->l_tls_initimage_size);
 
   dtv->pointer.val = newp;
+  dtv->pointer.to_free = newp;
 }
 
 struct link_map *


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [glibc/google/grte/v5-2.27/master] Fix memory leak in TLS allocation
@ 2021-08-28  0:37 Fangrui Song
  0 siblings, 0 replies; 2+ messages in thread
From: Fangrui Song @ 2021-08-28  0:37 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=04938f76dd74bc2cfbfa386a7d9e355e0c3c4683

commit 04938f76dd74bc2cfbfa386a7d9e355e0c3c4683
Author: James Y Knight <jyknight@google.com>
Date:   Wed Oct 21 13:38:14 2020 -0700

    Fix memory leak in TLS allocation

Diff:
---
 elf/dl-tls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elf/dl-tls.c b/elf/dl-tls.c
index 0ebd1fa040..c4c3bab83a 100644
--- a/elf/dl-tls.c
+++ b/elf/dl-tls.c
@@ -673,6 +673,7 @@ signal_safe_allocate_and_init (dtv_t *dtv, struct link_map *map)
 	  '\0', map->l_tls_blocksize - map->l_tls_initimage_size);
 
   dtv->pointer.val = newp;
+  dtv->pointer.to_free = newp;
 }
 
 struct link_map *


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-28  0:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-21 20:39 [glibc/google/grte/v5-2.27/master] Fix memory leak in TLS allocation Stan Shebs
2021-08-28  0:37 Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).