mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +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);
|
state = g_new0(benc_val_t, 1);
|
||||||
if(usedold || tr_bencLoad(data, len, state, NULL)) {
|
if(usedold || tr_bencLoad(data, len, state, NULL)) {
|
||||||
/* XXX all this evil compat code should go away at some point */
|
/* XXX all this evil compat code should go away at some point */
|
||||||
tr_bencFree(state);
|
|
||||||
bzero(state, sizeof(benc_val_t));
|
bzero(state, sizeof(benc_val_t));
|
||||||
state->type = TYPE_LIST;
|
state->type = TYPE_LIST;
|
||||||
for(line = data; NULL != (eol = strchr(line, PREF_SEP_LINE));
|
for(line = data; NULL != (eol = strchr(line, PREF_SEP_LINE));
|
||||||
|
|
Loading…
Reference in a new issue