Hi! > @@ -113,6 +114,12 @@ const char **splitstr(const char *str, const char > *separator, int *argcount) > arg_array = > (char **)realloc((void *)arg_array, > sizeof(char *) * max_toks); > + if (arg_array == NULL) { > + fprintf(stderr, "realloc: New memory allocation > failed \n"); > + free(arg_array);
I've removed the free(arg_array) here, because it's noop (doing free(NULL)) and pushed both patches. -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list