libressl / openbsd

Source code pulled from OpenBSD for LibreSSL - this includes most of the library and supporting code. The place to contribute to this code is via the OpenBSD CVS tree. Please mail patches to tech@openbsd.org, instead of submitting pull requests, since this tree is often rebased.
231 stars 92 forks source link

Fix small memory leak in tls_verify.c #10

Closed Basskrapfen closed 9 years ago

Basskrapfen commented 9 years ago

Replaced sk_GENERAL_NAME_free with sk_GENERAL_NAME_pop_free in tls_check_subject_altname to fix memory leak. sk_GENERAL_NAME_free only frees the stack but not the content, sk_GENERAL_NAME_pop_free also frees the content.

fake666 commented 9 years ago

+1

4a6f656c commented 9 years ago

Committed, thanks.