Merged revisions 134540 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r134540 | russell | 2008-07-30 14:52:53 -0500 (Wed, 30 Jul 2008) | 4 lines Fix a memory leak in func_curl. Every thread that used this function leaked an allocation the size of a pointer. (reported by jmls in #asterisk-dev) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@134541 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
1af9fe06b6
commit
3ffd7f4411
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,8 @@ static void curl_instance_cleanup(void *data)
|
|||
CURL **curl = data;
|
||||
|
||||
curl_easy_cleanup(*curl);
|
||||
|
||||
ast_free(data);
|
||||
}
|
||||
|
||||
AST_THREADSTORAGE_CUSTOM(curl_instance, curl_instance_init, curl_instance_cleanup);
|
||||
|
|
Reference in a new issue