fix tld crash on exit
This commit is contained in:
parent
4720b8a6c2
commit
f19fb0aa4e
1 changed files with 0 additions and 2 deletions
|
@ -49,7 +49,6 @@ void ResetTLD() {
|
|||
/* don't delete the tld entry ??? as its our "unknown" entry */
|
||||
if (ircstrcasecmp(t->tld, "???")) {
|
||||
tn2 = list_next(Thead, tn);
|
||||
free(t->country);
|
||||
free(t);
|
||||
list_delete(Thead, tn);
|
||||
lnode_destroy(tn);
|
||||
|
@ -194,7 +193,6 @@ void fini_tld() {
|
|||
tn = list_first(Thead);
|
||||
while (tn != NULL) {
|
||||
t = lnode_get(tn);
|
||||
free(t->country);
|
||||
free(t);
|
||||
tn = list_next(Thead, tn);
|
||||
}
|
||||
|
|
Reference in a new issue