Freeing the same variable twice in rapid succession can sometimes cause a double-free

svn:r1539
This commit is contained in:
Nick Mathewson 2004-04-07 22:25:37 +00:00
parent 6649645f09
commit 09e66bbd14

View File

@ -400,7 +400,6 @@ static void routerlist_free(routerlist_t *rl)
SMARTLIST_FOREACH(rl->routers, routerinfo_t *, r,
routerinfo_free(r));
smartlist_free(rl->routers);
tor_free(rl->routers);
tor_free(rl->software_versions);
tor_free(rl);
}