Date: Wed, 23 Dec 2009 18:53:11 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netinet/ipfw ip_fw_nat.c Message-ID: <200912231853.nBNIrR4Z051242@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
luigi 2009-12-23 18:53:11 UTC FreeBSD src repository Modified files: sys/netinet/ipfw ip_fw_nat.c Log: SVN rev 200909 on 2009-12-23 18:53:11Z by luigi mostly style changes, such as removal of trailing whitespace, reformatting to avoid unnecessary line breaks, small block restructuring to avoid unnecessary nesting, replace macros with function calls, etc. As a side effect of code restructuring, this commit fixes one bug: previously, if a realloc() failed, memory was leaked. Now, the realloc is not there anymore, as we first count how much memory we need and then do a single malloc. Revision Changes Path 1.10 +152 -183 src/sys/netinet/ipfw/ip_fw_nat.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912231853.nBNIrR4Z051242>