diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-10-02 14:29:15 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2015-10-02 16:51:57 -0400 |
commit | 4b2297ac9ac2d60912df1d47cc2553580ea1962f (patch) | |
tree | 8c79c5b6504761a0b568d4700006d91c6ec20628 /test/test_request.py | |
parent | fc91e5d5f5bd58f9dec4f7653855fd3b9bfaac81 (diff) | |
download | mod_nss-4b2297ac9ac2d60912df1d47cc2553580ea1962f.tar.gz mod_nss-4b2297ac9ac2d60912df1d47cc2553580ea1962f.tar.xz mod_nss-4b2297ac9ac2d60912df1d47cc2553580ea1962f.zip |
Fix memory leaks, uninit var, invalid read
Issues reported from valgrind.
The invalid read came from using SNI hostInfo data directly. Just
use the copy we apr_strndup() instead and all is well.
The SNI hostInfo values were leaking. I had removed the calls
to SECITEM_FreweItem at some point and forgotten to re-add them.
mc->semid was not explicitly initialized so could have blown up
if the compiler didn't automatically set it to 0. Explicitly set
it to make warning go away (and to be safe).
Diffstat (limited to 'test/test_request.py')
0 files changed, 0 insertions, 0 deletions