X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/800ff2ca9de79ef676b381b0a948ab9d7fac711b..b29800911a4c6b840904af2b7f912b6f8ad2b88f:/ircd/cache.c diff --git a/ircd/cache.c b/ircd/cache.c index b5581f52..c720e0ab 100644 --- a/ircd/cache.c +++ b/ircd/cache.c @@ -68,8 +68,8 @@ init_cache(void) oper_motd = cache_file(ircd_paths[IRCD_PATH_IRCD_OMOTD], "opers.motd", 0); memset(&links_cache_list, 0, sizeof(links_cache_list)); - help_dict_oper = rb_dictionary_create("oper help", strcasecmp); - help_dict_user = rb_dictionary_create("user help", strcasecmp); + help_dict_oper = rb_dictionary_create("oper help", rb_strcasecmp); + help_dict_user = rb_dictionary_create("user help", rb_strcasecmp); } /* @@ -217,6 +217,10 @@ free_cachefile(struct cachefile *cacheptr) rb_free(line->data); rb_free(line); } + else + { + rb_free_rb_dlink_node(ptr); + } } rb_free(cacheptr);