mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Fix use after free introduced by the use after free patch
This commit is contained in:
parent
9dd836b876
commit
ade2f87fe5
@ -57,8 +57,9 @@ void dcc_unregister_type(const char *type)
|
|||||||
|
|
||||||
pos = gslist_find_string(dcc_types, type);
|
pos = gslist_find_string(dcc_types, type);
|
||||||
if (pos != NULL) {
|
if (pos != NULL) {
|
||||||
|
void *tmp = pos->data;
|
||||||
dcc_types = g_slist_remove(dcc_types, pos->data);
|
dcc_types = g_slist_remove(dcc_types, pos->data);
|
||||||
g_free(pos->data);
|
g_free(tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user