[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: Otavio Salvador
Subject: Re: memory leak in gpt.c (Fixed the correct way)
Date: Mon, 26 Dec 2005 08:55:59 -0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Patrick Leslie Polzer <address@hidden> writes:

> On Mon, 26 Dec 2005 10:34:28 -0600
> Harley D. Eades III <"Harley D. Eades III" <address@hidden>> wrote:
>  | What is the difference between what I have and a PED_ASSERT? All the
>  | PED_ASSERT will do is return if pth is NULL, right?  The function as is
>  | will not free anything unless there is memory, which is in my mind
>  | correct.
> The problem is the crash that will occur when you dereference the pointer in
>   if (pth->Reserved2)

if (pth && pth->Reserved2)

should work.

        O T A V I O    S A L V A D O R
 E-mail: address@hidden      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
"Microsoft gives you Windows ... Linux gives
 you the whole house."

reply via email to

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