mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Fix use after free introduced by the use after free patch
This commit is contained in:
parent
9dd836b876
commit
ade2f87fe5
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue