Hello Michael, On Fri, Jun 3, 2016 at 4:59 AM, Michael Kerrisk (man-pages) <mtk.manpages@xxxxxxxxx> wrote: > Hello Rahul, > > > Given that handle_error() calls exit(), and that triggers close() > on all FDs and munmap() on all mappings, I'm not sure this patch > improves things. Can you say some more on why you think it is > needed? I think it is always better to free resources after use to avoid memory leaks later. But doing that in such simple example might be debatable. May be at-least at the end we should call munmap() and close(). That will cover munmap() usage as well. Regards, Rahul -- 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