1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-02-13 23:13:42 +00:00

Fixed Windows Handle leak

This commit is contained in:
Bryan Roe
2022-07-25 09:42:49 -07:00
parent 687f79d8d1
commit 7cffca38f5
4 changed files with 10 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ function dispatch(options)
this._control.write(h);
this._control.write(d);
};
s.on('end', function () { }); // DO NOT DELETE this line
});
ret._ipc.once('connection', function onConnect(s)
{

View File

@@ -150,6 +150,7 @@ function windows_registry()
result.values.push(achValue.Wide2UTF8);
}
}
this._AdvApi.RegCloseKey(h.Deref());
return (result);
}