From 1326d7916eb67796a6dbb8e51347e5a20af03959 Mon Sep 17 00:00:00 2001 From: jb Date: Wed, 30 Sep 1998 06:24:57 +0000 Subject: NULL a pointer after it is freed to avoid trying to free it again. --- lib/libpthread/thread/thr_spec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libpthread') diff --git a/lib/libpthread/thread/thr_spec.c b/lib/libpthread/thread/thr_spec.c index 745a145..8558dff 100644 --- a/lib/libpthread/thread/thr_spec.c +++ b/lib/libpthread/thread/thr_spec.c @@ -119,10 +119,12 @@ _thread_cleanupspecific(void) destructor(data); } else { free(_thread_run->specific_data); + _thread_run->specific_data = NULL; return; } } } + _thread_run->specific_data = NULL; free(_thread_run->specific_data); } -- cgit v1.1