While I do not agree, I understand. Irrespective of the OS's handling of allocated memory on exit, I consider it best practice to free all allocated memory at each and every program exit point. Call me pedantic, but there it is. Cheers-- I appreciate your reviews and feedback On 10/22/2014 05:17 AM, Sergey Senozhatsky wrote: > > free(p) before exit(0) is really useless, the kernel will clean > up everything. >