Author: mjordan Date: Mon Jan 12 09:18:24 2015 New Revision: 430489 URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=430489 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 ........ Merged revisions 430488 from http://svn.asterisk.org/svn/asterisk/branches/13 Modified: trunk/ (props changed) trunk/funcs/func_curl.c Propchange: trunk/ ------------------------------------------------------------------------------ Binary property 'branch-13-merged' - no diff available. Modified: trunk/funcs/func_curl.c URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_curl.c?view=diff&rev=430489&r1=430488&r2=430489 ============================================================================== --- trunk/funcs/func_curl.c (original) +++ trunk/funcs/func_curl.c Mon Jan 12 09:18:24 2015 @@ -198,6 +198,7 @@ ast_free(setting); } AST_LIST_HEAD_DESTROY(list); + ast_free(list); } enum optiontype { -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits
