Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] Re: (PR#6650) memory leak in remove_city
Home

[Freeciv-Dev] Re: (PR#6650) memory leak in remove_city

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#6650) memory leak in remove_city
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 28 Oct 2003 07:43:16 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Mon, 27 Oct 2003, Mike Kaufman wrote:
> On Mon, Oct 27, 2003 at 05:06:51PM -0800, Jason Short wrote:
> >
> > > Jason Short wrote:
> > >> The mystrdup in remove_city() in citytools.c is not fully matched by a
> > >> free() call.
> > >
> > > Patch attached.
> >
> > Here's a variant (untested) that works with PR#6360 (variable-length
> > arrays).
>
> this is not possibly ANSI C.

Correct. It is C99. PR#6360 adds this C99 feature to freeciv.

  - Per




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#6650) memory leak in remove_city, Per I. Mathisen <=