(trunk libT) fix minor memory leak in libtransmission/tr-dht.c, found by valgrind

This commit is contained in:
Charles Kerr 2009-12-14 17:46:00 +00:00
parent 87aefaf5ff
commit 8cee197cac
1 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,7 @@ dht_bootstrap(void *closure)
if(!bootstrap_done(cl->session, 0)) {
char *bootstrap_file;
FILE *f = NULL;
FILE *f;
bootstrap_file =
tr_buildPath(cl->session->configDir, "dht.bootstrap", NULL);
@ -221,6 +221,8 @@ dht_bootstrap(void *closure)
break;
}
}
tr_free( bootstrap_file );
}
/* We really don't want to abuse our bootstrap nodes.