CURLcode Curl_meta_set(struct Curl_easy *data, const char *key,
void *meta_data, Curl_meta_dtor *meta_dtor)
{
+ DEBUGASSERT(meta_data); /* never set to NULL */
if(!Curl_hash_add2(&data->meta_hash, CURL_UNCONST(key), strlen(key) + 1,
meta_data, meta_dtor)) {
meta_dtor(CURL_UNCONST(key), strlen(key) + 1, meta_data);
ftp = calloc(1, sizeof(*ftp));
if(!ftp ||
- Curl_meta_set(data, CURL_META_FTP_EASY, ftp, ftp_easy_dtor))
+ Curl_meta_set(data, CURL_META_FTP_EASY, ftp, ftp_easy_dtor))
return CURLE_OUT_OF_MEMORY;
ftpc = calloc(1, sizeof(*ftpc));
struct POP3 *pop3 = entry;
(void)key;
(void)klen;
+ DEBUGASSERT(pop3);
/* Cleanup our per-request based variables */
Curl_safefree(pop3->id);
Curl_safefree(pop3->custom);
struct pop3_conn *pop3c = entry;
(void)key;
(void)klen;
+ DEBUGASSERT(pop3c);
Curl_pp_disconnect(&pop3c->pp);
Curl_safefree(pop3c->apoptimestamp);
free(pop3c);
struct pop3_conn *pop3c;
struct POP3 *pop3 = calloc(1, sizeof(*pop3));
if(!pop3 ||
- Curl_meta_set(data, CURL_META_POP3_EASY, pop3, pop3_easy_dtor))
+ Curl_meta_set(data, CURL_META_POP3_EASY, pop3, pop3_easy_dtor))
return CURLE_OUT_OF_MEMORY;
pop3c = calloc(1, sizeof(*pop3c));
if(!pop3c ||
- Curl_conn_meta_set(conn, CURL_META_POP3_CONN, pop3c, pop3_conn_dtor))
+ Curl_conn_meta_set(conn, CURL_META_POP3_CONN, pop3c, pop3_conn_dtor))
return CURLE_OUT_OF_MEMORY;
return CURLE_OK;