mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.4@134540 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -89,6 +89,8 @@ static void curl_instance_cleanup(void *data)
|
||||
CURL **curl = data;
|
||||
|
||||
curl_easy_cleanup(*curl);
|
||||
|
||||
free(data);
|
||||
}
|
||||
|
||||
AST_THREADSTORAGE_CUSTOM(curl_instance, curl_instance_init, curl_instance_cleanup);
|
||||
|
Reference in New Issue
Block a user