Skip to content

Commit e5d650c

Browse files
Copilotithewei
andauthored
Fix memory leak of CredHandle in wintls.c (#803)
* Initial plan * Fix memory leak in wintls.c: free CredHandle after FreeCredentialsHandle Co-authored-by: ithewei <26049660+ithewei@users.noreply.github.com> * Remove codeql build artifacts and update .gitignore Co-authored-by: ithewei <26049660+ithewei@users.noreply.github.com> * feat: rm hconfig.h --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ithewei <26049660+ithewei@users.noreply.github.com>
1 parent 284e9e3 commit e5d650c

3 files changed

Lines changed: 3 additions & 102 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,5 @@ Release
7878
CMakeFiles
7979
CMakeCache.txt
8080
cmake_install.cmake
81+
_codeql_build_dir/
82+
_codeql_detected_source_root

hconfig.h

Lines changed: 0 additions & 102 deletions
This file was deleted.

ssl/wintls.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ void hssl_ctx_free(hssl_ctx_t ssl_ctx)
186186
if (sec_status != SEC_E_OK) {
187187
printe("free_cred_handle FreeCredentialsHandle %d\n", sec_status);
188188
}
189+
free(ssl_ctx);
189190
}
190191

191192
static void init_sec_buffer(SecBuffer* secure_buffer, unsigned long type, unsigned long len, void* buffer)

0 commit comments

Comments
 (0)