Andre, On Wed, Sep 24, 2008 at 4:01 PM, André Goddard Rosa <andre.goddard@xxxxxxxxx> wrote: > From dc0f26d3112519229671c621832f87a48e972642 Mon Sep 17 00:00:00 2001 > From: =?utf-8?q?Andr=C3=A9=20Goddard=20Rosa?= <andre.goddard@xxxxxxxxx> > Date: Wed, 24 Sep 2008 10:59:37 -0300 > Subject: [PATCH] Call hdestroy() after using hash table created by hcreate(), for the sake of completeness. > MIME-Version: 1.0 > Content-Type: text/plain; charset=utf-8 > Content-Transfer-Encoding: 8bit > > Signed-off-by: André Goddard Rosa <andre.goddard@xxxxxxxxx> > --- > man3/hsearch.3 | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/man3/hsearch.3 b/man3/hsearch.3 > index 16e3b6b..d5ae21c 100644 > --- a/man3/hsearch.3 > +++ b/man3/hsearch.3 > @@ -325,6 +325,7 @@ main(void) > printf("%9.9s \-> %9.9s:%d\\n", e.key, > ep ? ep\->key : "NULL", ep ? (int)(ep\->data) : 0); > } > + hdestroy(); > exit(EXIT_SUCCESS); > } > .fi Yes, good idea. Thanks. Applied for 3.11. Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ 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