-#define http_curl_init_ex(c, r) _http_curl_init_ex((c), (r))
-PHP_HTTP_API CURL *_http_curl_init_ex(CURL *ch, http_request *request);
+#define http_curl_init_ex(c, r) _http_curl_init_ex((c), (r) TSRMLS_CC)
+PHP_HTTP_API CURL *_http_curl_init_ex(CURL *ch, http_request *request TSRMLS_DC);
+
+#define http_curl_free(c) _http_curl_free((c) TSRMLS_CC)
+PHP_HTTP_API void _http_curl_free(CURL **ch TSRMLS_DC);