This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix leak in gcse-after-reload


On Monday, May 10, 2004, at 05:49 AM, Mostafa Hagog wrote:
We thought that the garbage collector of gcc should take care of this memory leek

+ free (unavail_occrs);

Any space allocated by xmalloc and friends, you will have to free yourself. Any space allocated by ggc_..., you don't have to worry about, but, for performance, you may ggc_free, if you know its lifetime.


If you have any other code in the compiler that needs fixing...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]