diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-30 19:56:24 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-30 19:56:24 +0000 |
commit | 058fe1560f996932ef67ab7e9283653d254c0a36 (patch) | |
tree | 8ea44f31d9fb6919ca15079f50aa037083f006fb /funcs | |
parent | f059d0a739ea406ed221e247b8b9b1586e588536 (diff) |
Merged revisions 134541 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r134541 | russell | 2008-07-30 14:55:31 -0500 (Wed, 30 Jul 2008) | 12 lines
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/branches/1.6.0@134542 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_curl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/funcs/func_curl.c b/funcs/func_curl.c index 32dbf7686..b7d91e4c3 100644 --- a/funcs/func_curl.c +++ b/funcs/func_curl.c @@ -99,6 +99,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); |