#include "transfer.h"
#include "vtls/vtls.h"
#include "curl_ntlm_core.h"
+#include "curl_memory.h"
#include "escape.h"
#include "curl_endian.h"
-/* The last #include files should be: */
-#include "curl_memory.h"
+/* The last #include file should be: */
#include "memdebug.h"
/* Local API functions */
/* Parse the path for the share */
req->share = strdup((*path == '/' || *path == '\\') ? path + 1 : path);
if(!req->share) {
- free(path);
+ Curl_safefree(path);
return CURLE_OUT_OF_MEMORY;
}
/* The share must be present */
if(!slash) {
- free(path);
+ Curl_safefree(path);
return CURLE_URL_MALFORMAT;
}
*slash = '\\';
}
- free(path);
+ Curl_safefree(path);
return CURLE_OK;
}