started freep(char *p) function