There is a memory leak defect on line 134 of /openssl/test/threadpool_test.c. #24104
Labels
branch: master
Merge to master branch
branch: 3.2
Merge to openssl-3.2
branch: 3.3
Merge to openssl-3.3
triaged: bug
The issue/pr is/fixes a bug
1.On line 103 of the file /openssl/test/threadpool_test.c, a pointer variable named 'cust_ctx' is defined and dynamic memory is allocated for it through the function OSSL_LIB_CTX_new. When the if statement on line 133 returns true, the program will return on line 134, thereby bypassing the release operation on the dynamic memory area pointed to by the 'cust_ctx' pointer on line 239. This constitutes a memory leak defect, as shown in the diagram below:
https://github.com/LuMingYinDetect/openssl_defects/blob/main/openssl_10.png
The text was updated successfully, but these errors were encountered: