[svn-commits] mjordan: branch 11 r430487 - /branches/11/funcs/func_curl.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jan 12 09:11:12 CST 2015


Author: mjordan
Date: Mon Jan 12 09:11:08 2015
New Revision: 430487

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

Modified:
    branches/11/funcs/func_curl.c

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




More information about the svn-commits mailing list