svn commit: r333392 - head/sys/contrib/ipfilter/netinet

Cy Schubert cy at FreeBSD.org
Wed May 9 02:03:02 UTC 2018


Author: cy
Date: Wed May  9 02:02:58 2018
New Revision: 333392
URL: https://svnweb.freebsd.org/changeset/base/333392

Log:
  Fix memory leak. (CID 1199373).
  
  MFC after:	1 week

Modified:
  head/sys/contrib/ipfilter/netinet/ip_dstlist.c

Modified: head/sys/contrib/ipfilter/netinet/ip_dstlist.c
==============================================================================
--- head/sys/contrib/ipfilter/netinet/ip_dstlist.c	Wed May  9 02:02:49 2018	(r333391)
+++ head/sys/contrib/ipfilter/netinet/ip_dstlist.c	Wed May  9 02:02:58 2018	(r333392)
@@ -690,6 +690,7 @@ ipf_dstlist_node_del(softc, arg, op, uid)
 	err = COPYIN(op->iplo_struct, temp, size);
 	if (err != 0) {
 		IPFERROR(120027);
+		KFREES(temp, size);
 		return EFAULT;
 	}
 


More information about the svn-src-all mailing list