Re: [PATCH] Re: Segfault on loading of non existent syntax file
- From: "Pavel Tsekov" <ptsekov gmx net>
- To: Leonard den Ottolander <leonard den ottolander nl>
- Cc: mc-devel gnome org
- Subject: Re: [PATCH] Re: Segfault on loading of non existent syntax file
- Date: Tue, 28 Mar 2006 09:54:41 +0200 (MEST)
> On Mon, 2006-03-27 at 11:08 +0200, Pavel Tsekov wrote:
> > How about the attached fix ?
>
> I assume g_malloc0 initializes edit->rules with zeros? This indeed fixes
> the crash, but doesn't this cause a memory leak? Or is that memory freed
> elsewhere?
In edit_read_syntax_rules () after the big "for" block:
if (!edit->rules[0])
syntax_g_free (edit->rules);
--
Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]