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
1 changed files with 0 additions and 1 deletions

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