Skip to content

Commit

Permalink
httpa_asyc_client: set curl memory callbacks in module initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
grumvalski committed Sep 9, 2020
1 parent e1dc051 commit 794861c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/modules/http_async_client/http_async_client_mod.c
Expand Up @@ -275,6 +275,8 @@ static int mod_init(void)
return -1;
}

set_curl_mem_callbacks();

/* init faked sip msg */
if(faked_msg_init()<0) {
LM_ERR("failed to init faked sip msg\n");
Expand Down
2 changes: 0 additions & 2 deletions src/modules/http_async_client/http_multi.c
Expand Up @@ -392,15 +392,13 @@ void set_curl_mem_callbacks(void)
LM_ERR ("invalid memory manager: %d\n", curl_memory_manager);
break;
}

}

int init_http_multi(struct event_base *evbase, struct http_m_global *wg)
{
g = wg;
g->evbase = evbase;

set_curl_mem_callbacks();

g->multi = curl_multi_init();
LM_DBG("curl_multi %p initialized on global %p (evbase %p)\n", g->multi, g, evbase);
Expand Down

0 comments on commit 794861c

Please sign in to comment.