summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1999-05-14 21:36:16 +0000
committernate <nate@FreeBSD.org>1999-05-14 21:36:16 +0000
commit188a2f4871a753bcb906e6c1502ee302010b2390 (patch)
tree6a9fe4194cc8696a48d8a1ad141b40d6b9be1c38 /lib/libpthread
parentf43ff516fdd72eddc065cb48354f392d20f70097 (diff)
downloadFreeBSD-src-188a2f4871a753bcb906e6c1502ee302010b2390.zip
FreeBSD-src-188a2f4871a753bcb906e6c1502ee302010b2390.tar.gz
- Fixed bug where we NULL'd before we freed the data causing a memory leak.
Submitted by: Ralf S. Engelschall Obtained from: PR i386/11713
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/thread/thr_spec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_spec.c b/lib/libpthread/thread/thr_spec.c
index 8558dff..d1caa28 100644
--- a/lib/libpthread/thread/thr_spec.c
+++ b/lib/libpthread/thread/thr_spec.c
@@ -124,8 +124,8 @@ _thread_cleanupspecific(void)
}
}
}
- _thread_run->specific_data = NULL;
free(_thread_run->specific_data);
+ _thread_run->specific_data = NULL;
}
static inline const void **
OpenPOWER on IntegriCloud