From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 5 Aug 2003 09:50:08 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Subject: Re: [devel] Re: [ALT Linux 0002810]: mpg123 -Z file eats LOTS of memory Message-ID: <20030805055008.GA8767@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20030804141835.C8D074806F@lrn.ru> <20030804153601.GF2334@julia.office.altlinux.ru> <20030804154647.GA27421@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <20030804154647.GA27421@basalt.office.altlinux.org> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.2 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 05:50:09 -0000 Archived-At: List-Archive: List-Post: --17pEHd4RhPHOinZp Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Aug 04, 2003 at 07:46:47PM +0400, Dmitry V. Levin wrote: > if (data) free (data) > - это масло маслянное. > пишите просто > free (data) > - все соответствующие стандарту libc это поддерживают. А ещё лучше free (data); data = 0; - меньше шансов получить double free в кривых программах. -- ldv --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/L0WQ9viEa8HiNCkRAgKaAJwNfbaGph25IHHFXhZObsfCc6jVBwCfd2Rg e3LYMNBrQAB1FyI/rQ27Ees= =iGim -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--