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

