https://git.reactos.org/?p=reactos.git;a=commitdiff;h=756aa270b1d0d51d4af683...
commit 756aa270b1d0d51d4af68393a9d13a690ba5e3e3 Author: Thomas Faber thomas.faber@reactos.org AuthorDate: Sat Feb 1 12:35:41 2020 +0100 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Sat Feb 8 13:08:27 2020 +0100
[MMIXER] Fix memory leak in MMixerGetDeviceNameWithComponentId. CORE-16611 --- sdk/lib/drivers/sound/mmixer/sup.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/sdk/lib/drivers/sound/mmixer/sup.c b/sdk/lib/drivers/sound/mmixer/sup.c index 99e0eeba8cc..06f342b12e8 100644 --- a/sdk/lib/drivers/sound/mmixer/sup.c +++ b/sdk/lib/drivers/sound/mmixer/sup.c @@ -838,6 +838,7 @@ MMixerGetDeviceNameWithComponentId( if (Status == MM_STATUS_SUCCESS) { MixerContext->Copy(OutDeviceName, DeviceName, min(ResultLength, (MAXPNAMELEN-1)*2)); + MixerContext->Free(DeviceName); }
MixerContext->CloseKey(hGuidKey);