On 11/13/13 10:24, Arif Zaman wrote: > Sorry, my last message contained html. Here is a plain-text version of the same thing. > > In the final example on the man page for snprintf (3), > > after the /* check error code */ there should be: > > if (n < 0) { > free(p); > return NULL; > } > > in order to avoid a memory leak. > > This was discussed on http://stackoverflow.com/questions/19933479/snprintf-man-page-example-memory-leak. Thanks for reporting this. I made the change as you suggest. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/ -- 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