mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +00:00
(trunk libT) fix minor memory leak in libtransmission/tr-dht.c, found by valgrind
This commit is contained in:
parent
87aefaf5ff
commit
8cee197cac
1 changed files with 3 additions and 1 deletions
|
@ -187,7 +187,7 @@ dht_bootstrap(void *closure)
|
||||||
|
|
||||||
if(!bootstrap_done(cl->session, 0)) {
|
if(!bootstrap_done(cl->session, 0)) {
|
||||||
char *bootstrap_file;
|
char *bootstrap_file;
|
||||||
FILE *f = NULL;
|
FILE *f;
|
||||||
|
|
||||||
bootstrap_file =
|
bootstrap_file =
|
||||||
tr_buildPath(cl->session->configDir, "dht.bootstrap", NULL);
|
tr_buildPath(cl->session->configDir, "dht.bootstrap", NULL);
|
||||||
|
@ -221,6 +221,8 @@ dht_bootstrap(void *closure)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tr_free( bootstrap_file );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We really don't want to abuse our bootstrap nodes.
|
/* We really don't want to abuse our bootstrap nodes.
|
||||||
|
|
Loading…
Reference in a new issue