[php-src] PR #22378: ext/com_dotnet: release the held IUnknown in com_get_active_object()
| From: | iliaal | Date: | Sun, 21 Jun 2026 11:03:14 +0000 |
| Subject: | [php-src] PR #22378: ext/com_dotnet: release the held IUnknown in com_get_active_object() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36525@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22378
Author: iliaal
The cleanup block guards on
unk but releases obj, so a successful
GetActiveObject() releases the IDispatch proxy twice and never releases the IUnknown it returned,
leaking it. Release unk so each interface pointer is released exactly once.
Windows-only; no test, since it needs a live Running Object Table entry.