OpenSC/OpenSC — pull request #157 by CardContact (2013-05-07 11:13:46+00:00)
Title: Fix SIGSEGV in --wrap-key of sc-hsm-tool on Windows

sc-hsm-tool used the public function sc_asn1_write_element that allocates memory for the buffer returned. Calling free() for such an allocated buffer causes a SIGSEGV in Windows as the opensc.dll and sc-hsm-tool.exe use a different heap.