From f8028afeaffd727bc335681491b25a6f8fe51f4d Mon Sep 17 00:00:00 2001 From: Mingxiang Lu Date: Sun, 29 Sep 2024 20:26:43 +0800 Subject: fix TLS memory leak with dlopen Signed-off-by: Mingxiang Lu Signed-off-by: Waldemar Brodkorb --- libpthread/nptl/sysdeps/generic/dl-tls.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libpthread/nptl/sysdeps/generic/dl-tls.c') diff --git a/libpthread/nptl/sysdeps/generic/dl-tls.c b/libpthread/nptl/sysdeps/generic/dl-tls.c index 7d25e4706..7b7991be8 100644 --- a/libpthread/nptl/sysdeps/generic/dl-tls.c +++ b/libpthread/nptl/sysdeps/generic/dl-tls.c @@ -45,8 +45,6 @@ to allow dynamic loading of modules defining IE-model TLS data. */ # define TLS_STATIC_SURPLUS 64 + DL_NNS * 100 -/* Value used for dtv entries for which the allocation is delayed. */ -# define TLS_DTV_UNALLOCATED ((void *) -1l) #ifndef SHARED extern dtv_t static_dtv; -- cgit v1.2.3