diff options
author | nate <nate@FreeBSD.org> | 1999-05-14 21:36:16 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1999-05-14 21:36:16 +0000 |
commit | 188a2f4871a753bcb906e6c1502ee302010b2390 (patch) | |
tree | 6a9fe4194cc8696a48d8a1ad141b40d6b9be1c38 /lib | |
parent | f43ff516fdd72eddc065cb48354f392d20f70097 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libc_r/uthread/uthread_spec.c | 2 | ||||
-rw-r--r-- | lib/libkse/thread/thr_spec.c | 2 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_spec.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_spec.c b/lib/libc_r/uthread/uthread_spec.c index 8558dff..d1caa28 100644 --- a/lib/libc_r/uthread/uthread_spec.c +++ b/lib/libc_r/uthread/uthread_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 ** diff --git a/lib/libkse/thread/thr_spec.c b/lib/libkse/thread/thr_spec.c index 8558dff..d1caa28 100644 --- a/lib/libkse/thread/thr_spec.c +++ b/lib/libkse/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 ** 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 ** |