mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Merged revisions 222873 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r222873 | dvossel | 2009-10-08 14:35:30 -0500 (Thu, 08 Oct 2009) | 6 lines fixes an ast_netsock_list memory leak. ABE-1998 Review: https://reviewboard.asterisk.org/r/395/ ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@222876 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -46,8 +46,6 @@ struct ast_netsock *ast_netsock_bind(struct ast_netsock_list *list, struct io_co | ||||
| 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, | ||||
|   | ||||
| @@ -74,6 +74,7 @@ int ast_netsock_release(struct ast_netsock_list *list) | ||||
| { | ||||
| 	ASTOBJ_CONTAINER_DESTROYALL(list, ast_netsock_destroy); | ||||
| 	ASTOBJ_CONTAINER_DESTROY(list); | ||||
| 	ast_free(list); | ||||
|  | ||||
| 	return 0; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user