diff options
author | pfg <pfg@FreeBSD.org> | 2015-04-29 15:33:07 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-04-29 15:33:07 +0000 |
commit | 4516e323bb06942ce0521e50518beff2984be131 (patch) | |
tree | a39130ba7ca3678bd1a03a47ecf6c98d64e4d97c /lib | |
parent | b3a5cfff6b79c6bfbd8dfb88dbfe8aa589b10508 (diff) | |
download | FreeBSD-src-4516e323bb06942ce0521e50518beff2984be131.zip FreeBSD-src-4516e323bb06942ce0521e50518beff2984be131.tar.gz |
MFC r281857:
_pthread_cleanup_push: fix allocator sizeof operand mismatch
Same fix appears to be in DragonFly's libthread_xu.
Found by: Clang Static Analyzer
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libthr/thread/thr_clean.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_clean.c b/lib/libthr/thread/thr_clean.c index dc5b0c7..f200726 100644 --- a/lib/libthr/thread/thr_clean.c +++ b/lib/libthr/thread/thr_clean.c @@ -84,7 +84,7 @@ _pthread_cleanup_push(void (*routine) (void *), void *arg) curthread->unwind_disabled = 1; #endif if ((newbuf = (struct pthread_cleanup *) - malloc(sizeof(struct _pthread_cleanup_info))) != NULL) { + malloc(sizeof(struct pthread_cleanup))) != NULL) { newbuf->routine = routine; newbuf->routine_arg = arg; newbuf->onheap = 1; |