Skip to content

Commit

Permalink
Merge pull request #252 from reaperhulk/fix-a-leak
Browse files Browse the repository at this point in the history
fix a leak in _subjectAltNameString
  • Loading branch information
alex committed May 4, 2015
2 parents f3fc99e + b7d7950 commit da6ef08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OpenSSL/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ def _subjectAltNameString(self):
"GENERAL_NAMES*",
method.d2i(_ffi.NULL, payloadptr, length))

names = _ffi.gc(names, _lib.GENERAL_NAMES_free)
parts = []
for i in range(_lib.sk_GENERAL_NAME_num(names)):
name = _lib.sk_GENERAL_NAME_value(names, i)
Expand Down

0 comments on commit da6ef08

Please sign in to comment.