bug-cvs
[Top][All Lists]
Advanced

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

Re: memory leak & patch


From: Kenneth Lorber
Subject: Re: memory leak & patch
Date: Wed, 11 Jun 2003 17:25:16 -0400 (EDT)

        From address@hidden Wed Jun 11 17:02:22 2003
        Subject: Re: memory leak & patch
        To: address@hidden (Kenneth Lorber)
        Date: Wed, 11 Jun 2003 14:47:06 -0400 (EDT)
        Cc: address@hidden
        In-Reply-To: <address@hidden> from "Kenneth Lorber" at Jun 11, 2003 
12:53:00 PM
        From: address@hidden (Larry Jones)

        Ahh, right you are!  I missed the wheat amongst the chaff.  I've checked
        in your fix.  Thanks!
You're welcome.

        > [free everything for debugging]

        While that's a noble goal, it's essentially unachievable in a language
        like C -- error exits would have to return normally all the way up the
        call stack to give each routine a chance to clean up.
It can vary from hard to impossible, depending on the project - one large
project I work on just happens to be structured so that it's only hard, and
we manage to free everything (except some things allocated deep in libc) -
it makes seeing that you've forgotten to clean up something very easy and
is good for finding a lot of problems.

        [... definitions ]
        CVS tries very hard to avoid memory leaks in that sense;
        it makes no attempt whatsoever to avoid memory leaks in
        your sense.
Sorry - I didn't mean to step on a design decision (I was just trying very
hard to get Purify to be happy - BTW it's not happy yet.)

        -Larry Jones
keni




reply via email to

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