]> granicus.if.org Git - curl/commit
openssl: fix per-thread memory leak usiong 1.0.1 or 1.0.2
authorDaniel Stenberg <daniel@haxx.se>
Mon, 29 Aug 2016 21:18:31 +0000 (23:18 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 14 Sep 2016 12:35:44 +0000 (14:35 +0200)
commitd93215621f029b5048117496afdbba1b49e953a1
treeb597da5f56eedfd5b1697925d377b6647e9dd022
parent4ba1569ad18f793be06d99a1098ab146b0247e1e
openssl: fix per-thread memory leak usiong 1.0.1 or 1.0.2

OpenSSL 1.0.1 and 1.0.2 build an error queue that is stored per-thread
so we need to clean it when easy handles are freed, in case the thread
will be killed in which the easy handle was used. All OpenSSL code in
libcurl should extract the error in association with the error already
so clearing this queue here should be harmless at worst.

Fixes #964
lib/vtls/openssl.c