[patch] hsearch.3: Call hdestroy() after using hash table created by hcreate(), for the sake of completeness

André Goddard Rosa
2008-09-24T14:01:22Z

[-- Attachment #1: Type: text/plain, Size: 868 bytes --]

From dc0f26d3112519229671c621832f87a48e972642 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A9=20Goddard=20Rosa?= <andre.goddard@gmail.com>
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@gmail.com>
---
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
--
1.6.0.2.508.g24593

\0

[-- Attachment #2: 0001-Call-hdestroy-after-using-hash-table-created-by-hc.patch --]
[-- Type: text/x-patch, Size: 924 bytes --]

From dc0f26d3112519229671c621832f87a48e972642 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A9=20Goddard=20Rosa?= <andre.goddard@gmail.com>
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-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
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
--
1.6.0.2.508.g24593