From 5a375d90e279dfa4e0d6dc1c293795fecf60dfde Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 19 Jun 2007 16:36:59 +0000 Subject: [PATCH] fix double-free memory error in gtk client when reading corrupt torrent files --- gtk/conf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gtk/conf.c b/gtk/conf.c index 65eb54cf1..98e07af7d 100644 --- a/gtk/conf.c +++ b/gtk/conf.c @@ -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));