mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -04:00
Added missing fclose to TorProcess::tryReadControlPort
This commit is contained in:
parent
15d56f01ac
commit
5b8ac7e49b
1 changed files with 2 additions and 0 deletions
|
@ -412,6 +412,8 @@ bool TorProcess::tryReadControlPort()
|
|||
ByteArray data = ByteArray((unsigned char*)line,size).trimmed();
|
||||
free(line);
|
||||
|
||||
fclose(file);
|
||||
|
||||
int p;
|
||||
if (data.startsWith("PORT=") && (p = data.lastIndexOf(':')) > 0) {
|
||||
mControlHost = data.mid(5, p - 5).toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue