emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: memory leak in xpm_load


From: YAMAMOTO Mitsuharu
Subject: Re: memory leak in xpm_load
Date: Wed, 06 Jun 2007 19:21:12 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shij┼Ź) APEL/10.6 Emacs/22.1.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Wed, 6 Jun 2007 11:41:24 +0200, "Juanma Barranquero" <address@hidden> 
>>>>> said:

> On 6/6/07, YAMAMOTO Mitsuharu <address@hidden> wrote:
>> In xpm_load (if HAVE_XPM and ALLOC_XPM_COLORS),
>> xpm_init_color_cache is called twice without an intervening
>> xpm_free_color_cache call, and that causes a memory leak ~4KB per
>> XPM image creation.

> Try removing the second one; I think it's a leftover from a patch by
> Chong.

I don't think I fully understand the code, but attr->numsymbols in
xpm_init_color_cache becomes always 0 if the second call is removed.
Is that right?

                                     YAMAMOTO Mitsuharu
                                address@hidden




reply via email to

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