summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authoralex <alex@openbsd.org>1999-05-14 22:29:52 +0000
committeralex <alex@openbsd.org>1999-05-14 22:29:52 +0000
commit6a1ead96e49014b7a7c04e2dd2e8c66d3c24fcd4 (patch)
treeedee8dfb94631167f56d12b0085473dd200851ca /lib/libpthread
parentRemoved extraneous comma in xrefs. (diff)
downloadwireguard-openbsd-6a1ead96e49014b7a7c04e2dd2e8c66d3c24fcd4.tar.xz
wireguard-openbsd-6a1ead96e49014b7a7c04e2dd2e8c66d3c24fcd4.zip
Memory leak; FreeBSD PR 11713 rse@engelschall.com
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/uthread/uthread_spec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_spec.c b/lib/libpthread/uthread/uthread_spec.c
index 8cf4959f1ca..6a4b9c9c5e4 100644
--- a/lib/libpthread/uthread/uthread_spec.c
+++ b/lib/libpthread/uthread/uthread_spec.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: uthread_spec.c,v 1.4 1999/01/06 05:29:29 d Exp $
+ * $OpenBSD: uthread_spec.c,v 1.5 1999/05/14 22:29:52 alex Exp $
*/
#include <signal.h>
#include <stdlib.h>
@@ -125,8 +125,8 @@ _thread_cleanupspecific(void)
}
}
}
- _thread_run->specific_data = NULL;
free(_thread_run->specific_data);
+ _thread_run->specific_data = NULL;
}
static inline const void **