Skip to content

Commit da53340

Browse files
authored
Merge pull request #72 from douzzer/20231107-pthread_attr_destroy-unused-return
20231107-pthread_attr_destroy-unused-return
2 parents 1a1f6ab + 10fa6f8 commit da53340

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wolfcrypt/src/async.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,9 @@ int wc_AsyncThreadCreate_ex(pthread_t *thread,
952952
exit_fail:
953953

954954
fprintf(stderr, "AsyncThreadCreate error: %d\n", status);
955-
(void)pthread_attr_destroy(&attr);
955+
status = pthread_attr_destroy(&attr);
956+
if (status != 0)
957+
fprintf(stderr, "AsyncThreadCreate cleanup error: %d\n", status);
956958
return ASYNC_OP_E;
957959
}
958960

0 commit comments

Comments
 (0)