mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 02:03:31 +00:00
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
This commit is contained in:
parent
99b44427ad
commit
877736eadf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=282224
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user