[svn-commits] dvossel: trunk r222873 - in /trunk: include/asterisk/netsock.h main/netsock.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 8 14:35:34 CDT 2009


Author: dvossel
Date: Thu Oct  8 14:35:30 2009
New Revision: 222873

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

Review: https://reviewboard.asterisk.org/r/395/


Modified:
    trunk/include/asterisk/netsock.h
    trunk/main/netsock.c

Modified: trunk/include/asterisk/netsock.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/netsock.h?view=diff&rev=222873&r1=222872&r2=222873
==============================================================================
--- trunk/include/asterisk/netsock.h (original)
+++ trunk/include/asterisk/netsock.h Thu Oct  8 14:35:30 2009
@@ -45,8 +45,6 @@
 struct ast_netsock *ast_netsock_bindaddr(struct ast_netsock_list *list, struct io_context *ioc,
 					 struct sockaddr_in *bindaddr, int tos, int cos, 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: trunk/main/netsock.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/netsock.c?view=diff&rev=222873&r1=222872&r2=222873
==============================================================================
--- trunk/main/netsock.c (original)
+++ trunk/main/netsock.c Thu Oct  8 14:35:30 2009
@@ -81,6 +81,7 @@
 {
 	ASTOBJ_CONTAINER_DESTROYALL(list, ast_netsock_destroy);
 	ASTOBJ_CONTAINER_DESTROY(list);
+	ast_free(list);
 
 	return 0;
 }




More information about the svn-commits mailing list