From bbc1ac75333a6da0e342340d7547f8b804a12bea Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 12 Apr 2011 11:41:00 +0000 Subject: [PATCH] 2011-04-12 13:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbcurl/core.c ! fix double free in PHB_CURL_free. hb_curl_form_free walks the linked list. Calling it again on the last item results in a double free. [Benjamin Jacobs] (Thank you very much!) --- harbour/ChangeLog | 7 +++++++ harbour/contrib/hbcurl/core.c | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 81f8799844..9bf0694561 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,13 @@ The license applies to all entries newer than 2009-04-28. */ +2011-04-12 13:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbcurl/core.c + ! fix double free in PHB_CURL_free. + hb_curl_form_free walks the linked list. Calling it again on the last + item results in a double free. + [Benjamin Jacobs] (Thank you very much!) + 2011-04-12 01:16 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbxbp/hbxbp.hbc * contrib/hbxbp/hbxbp.hbp diff --git a/harbour/contrib/hbcurl/core.c b/harbour/contrib/hbcurl/core.c index 5e9885a132..6e8f3b5f3a 100644 --- a/harbour/contrib/hbcurl/core.c +++ b/harbour/contrib/hbcurl/core.c @@ -501,7 +501,6 @@ static void PHB_CURL_free( PHB_CURL hb_curl, HB_BOOL bFree ) #endif hb_curl_form_free( &hb_curl->pHTTPPOST_First ); - hb_curl_form_free( &hb_curl->pHTTPPOST_Last ); hb_curl_slist_free( &hb_curl->pHTTPHEADER ); hb_curl_slist_free( &hb_curl->pHTTP200ALIASES ); hb_curl_slist_free( &hb_curl->pQUOTE );