1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Fix use after free introduced by the use after free patch

This commit is contained in:
dequis 2018-08-24 02:19:42 -03:00
parent 9dd836b876
commit ade2f87fe5

View File

@ -57,8 +57,9 @@ void dcc_unregister_type(const char *type)
pos = gslist_find_string(dcc_types, type);
if (pos != NULL) {
dcc_types = g_slist_remove(dcc_types, pos->data);
g_free(pos->data);
void *tmp = pos->data;
dcc_types = g_slist_remove(dcc_types, pos->data);
g_free(tmp);
}
}