1
0
Fork 0
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:
Charles Kerr 2007-06-19 16:36:59 +00:00
parent bda9067ee7
commit 5a375d90e2

View file

@ -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));