Commit 8f1783b8 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

provide curl_formfree() even when http is disabled, it does nothing then

parent be72eaa3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1468,4 +1468,10 @@ CURLFORMcode curl_formadd(struct curl_httppost **httppost,
  return CURL_FORMADD_DISABLED;
}

void curl_formfree(struct curl_httppost *form)
{
  (void)form;
  /* does nothing HTTP is disabled */
}

#endif  /* CURL_DISABLE_HTTP */