mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
(cli) #1547: free memory read
This commit is contained in:
parent
087f9d75c8
commit
eeb05d1489
1 changed files with 2 additions and 1 deletions
|
@ -210,6 +210,8 @@ scrapeDoneFunc( tr_session * session UNUSED,
|
|||
(char*)host );
|
||||
|
||||
--leftToScrape;
|
||||
|
||||
tr_free( host );
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -431,7 +433,6 @@ main( int argc,
|
|||
tr_httpParseURL( scrape, -1, &host, NULL, NULL );
|
||||
++leftToScrape;
|
||||
tr_webRun( h, url, NULL, scrapeDoneFunc, host );
|
||||
tr_free( host );
|
||||
tr_free( url );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue