[asterisk-commits] mjordan: branch 13 r430488 - in /branches/13: ./ funcs/func_curl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 12 09:18:06 CST 2015


Author: mjordan
Date: Mon Jan 12 09:18:04 2015
New Revision: 430488

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=430488
Log:
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)
........

Merged revisions 430487 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    branches/13/   (props changed)
    branches/13/funcs/func_curl.c

Propchange: branches/13/
------------------------------------------------------------------------------
--- branch-11-merged (original)
+++ branch-11-merged Mon Jan 12 09:18:04 2015
@@ -1,1 +1,1 @@
-/branches/11:1-429517,429539,429632,429783,429804,429825,429867,429893,429982,430009,430126,430415
+/branches/11:1-429517,429539,429632,429783,429804,429825,429867,429893,429982,430009,430126,430415,430487

Modified: branches/13/funcs/func_curl.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/funcs/func_curl.c?view=diff&rev=430488&r1=430487&r2=430488
==============================================================================
--- branches/13/funcs/func_curl.c (original)
+++ branches/13/funcs/func_curl.c Mon Jan 12 09:18:04 2015
@@ -198,6 +198,7 @@
 		free(setting);
 	}
 	AST_LIST_HEAD_DESTROY(list);
+	ast_free(list);
 }
 
 enum optiontype {




More information about the asterisk-commits mailing list