From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 21 Aug 2003 15:04:40 +0400 From: Alexey Tourbin To: community@altlinux.ru Message-ID: <20030821110440.GH1881@julia.office.altlinux.ru> Mail-Followup-To: community@altlinux.ru References: <20030821103001.6e7c55f2.olli@rbauto.ru> <20030821105347.GG1881@julia.office.altlinux.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X+nYw8KZ/oNxZ8JS" Content-Disposition: inline In-Reply-To: <20030821105347.GG1881@julia.office.altlinux.ru> Subject: [Comm] Re: ?: =?koi8-r?b?0M/exc3VINzUwSDQ0s/H0sHNzcEg1tLF1A==?= swap w/ speed 1Mb/sec X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.2 Precedence: list Reply-To: community@altlinux.ru List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 11:06:18 -0000 Archived-At: List-Archive: List-Post: --X+nYw8KZ/oNxZ8JS Content-Type: multipart/mixed; boundary="smOfPzt+Qjm5bNGJ" Content-Disposition: inline Content-Transfer-Encoding: 8bit --smOfPzt+Qjm5bNGJ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Aug 21, 2003 at 02:53:47PM +0400, Alexey Tourbin wrote: > Кажись в этом месте libnet протекает. Точняк. Попробуйте пересобрать libnet1 с вот этим патчем и посмотреть, течёт или нет. --smOfPzt+Qjm5bNGJ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="libnet-1.0.2a-alt-memory-leak.patch" --- Libnet-1.0.2a/src/libnet_link_sockpacket.c~ 2001-01-07 18:53:44 +0000 +++ Libnet-1.0.2a/src/libnet_link_sockpacket.c 2003-08-21 11:01:17 +0000 @@ -167,14 +167,9 @@ bad: int libnet_close_link_interface(struct libnet_link_int *l) { - if (close(l->fd) == 0) - { - return (1); - } - else - { - return (-1); - } + int rv = close(l->fd); + free(l); + return rv ? -1 : 1; } --smOfPzt+Qjm5bNGJ-- --X+nYw8KZ/oNxZ8JS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/RKdIfBKgtDjnu0YRAvzPAJ9TPHSfn48AvBtU/2SpOSg4Yj0CBwCbBkRX JU4fN8mbyT/1gXK6nPpUkM4= =ABc/ -----END PGP SIGNATURE----- --X+nYw8KZ/oNxZ8JS--