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

Re: [PATCH] Porting filmgimp-0.1-1.0.4 to GNU/Hurd



Le dim 25/08/2002 à 10:43, Niels Möller a écrit :

> One also needs to free the string somewhere (unless gimp uses
> automatic gc?). Sometimes it's more convenient to use alloca + sprintf
> than asprintf.

The original variable was a static char [MAXPATHLEN]; I use a
dynamically allocated string, of just the needed size. I didn't find
useful to add free() calls, but it's certainly possible.

Should I consider finding where the function is called to free() the
memory after use, and providing a patch?

Snark on #hurd, #hurdfr




Reply to: