[asterisk-commits] dvossel: branch 1.4 r222877 - in /branches/1.4: include/asterisk/ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 8 14:45:19 CDT 2009


Author: dvossel
Date: Thu Oct  8 14:45:15 2009
New Revision: 222877

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=222877
Log:
fixes an ast_netsock_list memory leak.

ABE-1998
Review: https://reviewboard.asterisk.org/r/395/


Modified:
    branches/1.4/include/asterisk/netsock.h
    branches/1.4/main/netsock.c

Modified: branches/1.4/include/asterisk/netsock.h
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/include/asterisk/netsock.h?view=diff&rev=222877&r1=222876&r2=222877
==============================================================================
--- branches/1.4/include/asterisk/netsock.h (original)
+++ branches/1.4/include/asterisk/netsock.h Thu Oct  8 14:45:15 2009
@@ -46,8 +46,6 @@
 struct ast_netsock *ast_netsock_bindaddr(struct ast_netsock_list *list, struct io_context *ioc,
 					 struct sockaddr_in *bindaddr, int tos, ast_io_cb callback, void *data);
 
-int ast_netsock_free(struct ast_netsock_list *list, struct ast_netsock *netsock);
-
 int ast_netsock_release(struct ast_netsock_list *list);
 
 struct ast_netsock *ast_netsock_find(struct ast_netsock_list *list,

Modified: branches/1.4/main/netsock.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/netsock.c?view=diff&rev=222877&r1=222876&r2=222877
==============================================================================
--- branches/1.4/main/netsock.c (original)
+++ branches/1.4/main/netsock.c Thu Oct  8 14:45:15 2009
@@ -100,6 +100,7 @@
 {
 	ASTOBJ_CONTAINER_DESTROYALL(list, ast_netsock_destroy);
 	ASTOBJ_CONTAINER_DESTROY(list);
+	ast_free(list);
 
 	return 0;
 }




More information about the asterisk-commits mailing list