Michael Stefaniuc : qcap: Fix a mem leak on an error path. Found by Smatch.
Alexandre Julliard
julliard at winehq.org
Mon Nov 19 08:19:49 CST 2007
Module: wine
Branch: master
Commit: 0805f6bb83e5ad989e244d6c8b8e6891882f958e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0805f6bb83e5ad989e244d6c8b8e6891882f958e
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Nov 19 00:19:47 2007 +0100
qcap: Fix a mem leak on an error path. Found by Smatch.
---
dlls/qcap/vfwcapture.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/qcap/vfwcapture.c b/dlls/qcap/vfwcapture.c
index b461054..5e46335 100644
--- a/dlls/qcap/vfwcapture.c
+++ b/dlls/qcap/vfwcapture.c
@@ -767,6 +767,8 @@ VfwPin_Construct( IBaseFilter * pBaseFilter, LPCRITICAL_SECTION pCritSec,
*ppPin = (IPin *)(&pPinImpl->pin.pin.lpVtbl);
return S_OK;
}
+
+ CoTaskMemFree(pPinImpl);
return E_FAIL;
}
More information about the wine-cvs
mailing list