We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1a1f6ab + 10fa6f8 commit da53340Copy full SHA for da53340
1 file changed
wolfcrypt/src/async.c
@@ -952,7 +952,9 @@ int wc_AsyncThreadCreate_ex(pthread_t *thread,
952
exit_fail:
953
954
fprintf(stderr, "AsyncThreadCreate error: %d\n", status);
955
- (void)pthread_attr_destroy(&attr);
+ status = pthread_attr_destroy(&attr);
956
+ if (status != 0)
957
+ fprintf(stderr, "AsyncThreadCreate cleanup error: %d\n", status);
958
return ASYNC_OP_E;
959
}
960
0 commit comments