]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix memory leak in TLS allocation
authorJames Y Knight <jyknight@google.com>
Wed, 21 Oct 2020 20:38:14 +0000 (13:38 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:26:04 +0000 (17:26 -0700)
elf/dl-tls.c

index 0ebd1fa04065439312ff8fe32553a176be6b92d9..c4c3bab83a43dd114029f85cbab70db256118558 100644 (file)
@@ -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 *