- fix php4 build
[m6w6/ext-http] / http_request_api.c
index 5bb5b6580ad203939f80d56d1a34fcdeb75987e9..097049f3c82b6ab562508d362c5feafda26fb02d 100644 (file)
@@ -464,7 +464,7 @@ PHP_HTTP_API STATUS _http_request_init(CURL *ch, http_request_method meth, char
                        phpstr_fix(qstr);
                        HTTP_CURL_OPT(COOKIE, http_request_data_copy(COPY_STRING, qstr->data));
                }
-               phpstr_free(qstr);
+               phpstr_free(&qstr);
        } else {
                HTTP_CURL_OPT(COOKIE, NULL);
        }