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:
parent
9dd836b876
commit
ade2f87fe5
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user