mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 14:41:04 -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();
|
ByteArray data = ByteArray((unsigned char*)line,size).trimmed();
|
||||||
free(line);
|
free(line);
|
||||||
|
|
||||||
|
fclose(file);
|
||||||
|
|
||||||
int p;
|
int p;
|
||||||
if (data.startsWith("PORT=") && (p = data.lastIndexOf(':')) > 0) {
|
if (data.startsWith("PORT=") && (p = data.lastIndexOf(':')) > 0) {
|
||||||
mControlHost = data.mid(5, p - 5).toString();
|
mControlHost = data.mid(5, p - 5).toString();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue