Commit:    432d59ab5560202a46b01d05455418e9fc810365
Author:    Anatol Belski <a...@php.net>         Sun, 17 Feb 2013 20:29:20 +0100
Parents:   d420368bc9b2fbbdc7bd4f6992cfcd153ee18ddd
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=432d59ab5560202a46b01d05455418e9fc810365

Log:
fix free vs. curl_free

Changed paths:
  M  ext/curl/interface.c


Diff:
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 0714148..0c29e46 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -3490,7 +3490,7 @@ PHP_FUNCTION(curl_escape)
 
        if ((res = curl_easy_escape(ch->cp, str, str_len))) {
                RETVAL_STRING(res, 1);
-               free(res);
+               curl_free(res);
        } else {
                RETURN_FALSE;
        }
@@ -3514,7 +3514,7 @@ PHP_FUNCTION(curl_unescape)
 
        if ((out = curl_easy_unescape(ch->cp, str, str_len, &out_len))) {
                RETVAL_STRINGL(out, out_len, 1);
-               free(out);
+               curl_free(out);
        } else {
                RETURN_FALSE;
        }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to