openssl: fix bad memory free (regression) 67/90767/2 accepted/tizen/3.0/ivi/20161011.043815 accepted/tizen/3.0/mobile/20161015.032650 accepted/tizen/3.0/tv/20161016.004006 accepted/tizen/3.0/wearable/20161015.081908 accepted/tizen/common/20161004.194334 accepted/tizen/ivi/20161005.080315 accepted/tizen/mobile/20161005.080228 accepted/tizen/tv/20161005.080243 accepted/tizen/wearable/20161005.080258 submit/tizen/20161004.080743 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
authorSeonah Moon <seonah1.moon@samsung.com>
Tue, 4 Oct 2016 07:35:59 +0000 (16:35 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Tue, 4 Oct 2016 07:37:52 +0000 (16:37 +0900)
commit5842f4e35c2d3c9df52301359e2888850f988c9d
treef47c8128e25bd3bfa56d33bd2df392a35d1c2665
parentc0fb88a15c02fc1be13605e08e38c818cd0d0bdf
openssl: fix bad memory free (regression)

The allocation could be made by OpenSSL so the free must be made with OPENSSL_free() to avoid problems.
(https://github.com/curl/curl/issues/1005)

Change-Id: I07527924fe20ed859cbd5d7ade356410c64d71c7
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
lib/vtls/openssl.c