Skip to content

Commit 432d59a

Browse files
committed
fix free vs. curl_free
1 parent d420368 commit 432d59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/curl/interface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3490,7 +3490,7 @@ PHP_FUNCTION(curl_escape)
34903490

34913491
if ((res = curl_easy_escape(ch->cp, str, str_len))) {
34923492
RETVAL_STRING(res, 1);
3493-
free(res);
3493+
curl_free(res);
34943494
} else {
34953495
RETURN_FALSE;
34963496
}
@@ -3514,7 +3514,7 @@ PHP_FUNCTION(curl_unescape)
35143514

35153515
if ((out = curl_easy_unescape(ch->cp, str, str_len, &out_len))) {
35163516
RETVAL_STRINGL(out, out_len, 1);
3517-
free(out);
3517+
curl_free(out);
35183518
} else {
35193519
RETURN_FALSE;
35203520
}

0 commit comments

Comments
 (0)