]> git.ipfire.org Git - thirdparty/asterisk.git/commit
funcs/func_curl: Fix memory leak when CURLOPT channel datastore is destroyed
authorMatthew Jordan <mjordan@digium.com>
Mon, 12 Jan 2015 15:11:08 +0000 (15:11 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 12 Jan 2015 15:11:08 +0000 (15:11 +0000)
commit6d5f0a0db998d6fc2a9c812827a03b536c8b2c79
tree61663a12a8791cd91aa137c1f9abfbbe430a447f
parenta0da993ddb2954c0e78551fd9db23041ddc53955
funcs/func_curl: Fix memory leak when CURLOPT channel datastore is destroyed

When the channel datastore associated with the usage of CURLOPT on a specific
channel is freed, the underlying structure holding the list of options is not
disposed of. This patch properly frees the structure in the datastore .destroy
callback.

ASTERISK-24672 #close
Reported by: Kristian Hogh
patches:
  func_curl-memory-leak.diff uploaded by Kristian Hogh (License 6639)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@430487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_curl.c