Fix to functions.c with memleak in strfunc()