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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-- 
1.6.0.2.508.g24593


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
-- 
1.6.0.2.508.g24593


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux