mapwfs.c: correctly pair CPL allocation routines with CPL free routines