projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release Open vSwitch 0.99.0.
[openvswitch]
/
lib
/
shash.c
diff --git
a/lib/shash.c
b/lib/shash.c
index f1785139d74f08bc7481d7fa4891da6b5d87295a..da33fe8b6fab4b994ffc2c0ee3793c56f171cf7c 100644
(file)
--- a/
lib/shash.c
+++ b/
lib/shash.c
@@
-36,6
+36,7
@@
shash_destroy(struct shash *sh)
{
if (sh) {
shash_clear(sh);
{
if (sh) {
shash_clear(sh);
+ hmap_destroy(&sh->map);
}
}
}
}
@@
-44,7
+45,7
@@
shash_clear(struct shash *sh)
{
struct shash_node *node, *next;
{
struct shash_node *node, *next;
-
HMAP_FOR_EACH_SAFE (node, next, struct shash_node, node, &sh->map
) {
+
SHASH_FOR_EACH_SAFE (node, next, sh
) {
hmap_remove(&sh->map, &node->node);
free(node->name);
free(node);
hmap_remove(&sh->map, &node->node);
free(node->name);
free(node);