[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memory leak in gpt.c (Fixed the correct way)

From: Patrick Leslie Polzer
Subject: Re: memory leak in gpt.c (Fixed the correct way)
Date: Mon, 26 Dec 2005 17:48:53 +0100

On Mon, 26 Dec 2005 17:19:20 +0100
Håkon Løvdal <Håkon Løvdal <address@hidden>> wrote:

 | There is no point in the last "if (pth)" test; if pth is NULL the
 | program will crash
 | at the pth->Reserved2 reference. On the question of whether passing NULL
 | to a function like this should be valid or not I tend to think it
 | should not, and therefore
 | suggest adding PED_ASSERT(pth != NULL, return) at the beginning.
That thing slipped my attention.
Thank you, Håkon.

~ Leslie

PGP-KID: 0x52D70289

Attachment: pgpBPckX_EQJP.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]