]> git.ipfire.org Git - thirdparty/qemu.git/commit
python: ensure QEMUQtestProtocol closes its socket
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 15 Jul 2025 14:30:20 +0000 (15:30 +0100)
committerJohn Snow <jsnow@redhat.com>
Mon, 15 Sep 2025 18:36:01 +0000 (14:36 -0400)
commit6ccb48ffc19fe25511313a246d4a8bad51114ea9
treef68ee5481bbf9d8646f3524c853fe1658b64ee7c
parent82c7cb93c750196f513a1b11cb85e0328bad444f
python: ensure QEMUQtestProtocol closes its socket

While QEMUQtestMachine closes the socket that was passed to
QEMUQtestProtocol, the python resource leak manager still
believes that the copy QEMUQtestProtocol holds is open. We
must explicitly call close to avoid this leak warnnig.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
python/qemu/machine/qtest.py