about summary refs log tree commit diff
path: root/dlfcn
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-11-22 22:05:57 +0100
committerFlorian Weimer <fweimer@redhat.com>2018-11-22 22:05:57 +0100
commitf5cc21eaeea6afbdfd543c63d2a552f141a91781 (patch)
tree6606cfd2082b4b22866d00f992d9422e28941842 /dlfcn
parent481a6cf0c24f02f251d7cd0b776c12d00e6b144f (diff)
downloadglibc-f5cc21eaeea6afbdfd543c63d2a552f141a91781.tar.gz
glibc-f5cc21eaeea6afbdfd543c63d2a552f141a91781.tar.xz
glibc-f5cc21eaeea6afbdfd543c63d2a552f141a91781.zip
Revert "malloc: tcache double free check" [BZ #23907]
This reverts commit 481a6cf0c24f02f251d7cd0b776c12d00e6b144f, the
backport of commit bcdaad21d4635931d1bd3b54a7894276925d081d on the
master branch.
Diffstat (limited to 'dlfcn')
-rw-r--r--dlfcn/dlerror.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dlfcn/dlerror.c b/dlfcn/dlerror.c
index 96bf925333..33574faab6 100644
--- a/dlfcn/dlerror.c
+++ b/dlfcn/dlerror.c
@@ -198,10 +198,7 @@ check_free (struct dl_action_result *rec)
       Dl_info info;
       if (_dl_addr (check_free, &info, &map, NULL) != 0 && map->l_ns == 0)
 #endif
-	{
-	  free ((char *) rec->errstring);
-	  rec->errstring = NULL;
-	}
+	free ((char *) rec->errstring);
     }
 }