about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-09-09 11:10:43 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-09-09 11:10:43 -0400
commita684153f2920729f9fc3ea27ddb77d7cc3543214 (patch)
tree68ab222c3d8799a75c2b023eb755eb130a8c29a4 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parenta06edda3ad9abd4f07d07bbe46cb488efeebbbd0 (diff)
downloadrust-a684153f2920729f9fc3ea27ddb77d7cc3543214.tar.gz
rust-a684153f2920729f9fc3ea27ddb77d7cc3543214.zip
Only call pthread_attr_destroy() after getattr_np() succeeds on all libcs
The calling convention of pthread_getattr_np() is to initialize the
pthread_attr_t, so _destroy() is only necessary on success (and _init()
isn't necessary beforehand).  On the other hand, FreeBSD wants the
attr_t to be initialized before pthread_attr_get_np(), and therefore it
should always be destroyed afterwards.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions