svn commit: r300941 - head/usr.sbin/rpcbind

Garrett Cooper ngie at FreeBSD.org
Sun May 29 05:55:22 UTC 2016


Author: ngie
Date: Sun May 29 05:55:21 2016
New Revision: 300941
URL: https://svnweb.freebsd.org/changeset/base/300941

Log:
  Don't leak res in network_init(..)
  
  Call freeaddrinfo on it after it's been used
  
  MFC after: 1 week
  Reported by: Coverity
  CID: 1225050
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/usr.sbin/rpcbind/util.c

Modified: head/usr.sbin/rpcbind/util.c
==============================================================================
--- head/usr.sbin/rpcbind/util.c	Sun May 29 04:56:48 2016	(r300940)
+++ head/usr.sbin/rpcbind/util.c	Sun May 29 05:55:21 2016	(r300941)
@@ -396,6 +396,7 @@ network_init(void)
 	freeifaddrs(ifp);
 #endif
 
+	freeaddrinfo(res);
 	/* close(s); */
 }
 


More information about the svn-src-all mailing list