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!)
This commit is contained in:
Viktor Szakats
2011-04-12 11:41:00 +00:00
parent fd75b08d67
commit bbc1ac7533
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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 );