Hello Bert, Thanks again for reviewing. [...] >> .SH DESCRIPTION >> The >> .BR pthread_create () >> functions starts a new thread in the calling process. > function fixed. [...] >> /* Allocate memory for pthread_create() arguments */ >> >> tinfo = calloc(argc \- 1, num_threads); > tinfo = calloc(num_threads, sizeof(*tinfo)); Thanks. I had reworked the program to use getopt, and missed cleanin this piece up. [...] >> printf("Joined with thread %d; returned value was %s\\n", >> tinfo[tnum].thread_num, (char *) res); >> free(res); /* Free memory allocated by thread */ >> } > free(tinfo); /*you free res, so you can free this too */ Yes -- good point. Fixed. Thanks, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html