mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
fix double-free memory error in gtk client when reading corrupt torrent files
This commit is contained in:
parent
bda9067ee7
commit
5a375d90e2
1 changed files with 0 additions and 1 deletions
|
@ -306,7 +306,6 @@ cf_loadstate(char **errstr) {
|
|||
state = g_new0(benc_val_t, 1);
|
||||
if(usedold || tr_bencLoad(data, len, state, NULL)) {
|
||||
/* XXX all this evil compat code should go away at some point */
|
||||
tr_bencFree(state);
|
||||
bzero(state, sizeof(benc_val_t));
|
||||
state->type = TYPE_LIST;
|
||||
for(line = data; NULL != (eol = strchr(line, PREF_SEP_LINE));
|
||||
|
|
Loading…
Reference in a new issue