/[LeafOK_CVS]/lbbs/src/trie_dict.c
ViewVC logotype

Diff of /lbbs/src/trie_dict.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 by sysadm, Sat May 17 02:41:19 2025 UTC Revision 1.4 by sysadm, Sat May 17 15:39:51 2025 UTC
# Line 54  void trie_dict_destroy(TRIE_NODE *p_dict Line 54  void trie_dict_destroy(TRIE_NODE *p_dict
54                  if (p_dict->p_nodes[i] != NULL)                  if (p_dict->p_nodes[i] != NULL)
55                  {                  {
56                          trie_dict_destroy(p_dict->p_nodes[i]);                          trie_dict_destroy(p_dict->p_nodes[i]);
                         p_dict->p_nodes[i] = NULL;  
57                  }                  }
58    
59                  p_dict->flags[i] = 0;                  p_dict->flags[i] = 0;
60          }          }
61    
62          free(p_dict);          free(p_dict);
63            p_dict = NULL;
64  }  }
65    
66  int trie_dict_set(TRIE_NODE *p_dict, const char *key, int64_t value)  int trie_dict_set(TRIE_NODE *p_dict, const char *key, int64_t value)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1