[ofw] [PATCH] INDAdatper::Query leaks CA attribute buffer

Fab Tillier ftillier at microsoft.com
Tue Jun 1 17:34:58 PDT 2010


Need to free the temporary CA attribute buffer before returning.

Signed-off-by: Fab Tillier <ftillier at microsoft.com>

Index: NdAdapter.cpp
===================================================================
--- NdAdapter.cpp	(revision 2818)
+++ NdAdapter.cpp	(working copy)
@@ -283,6 +283,7 @@ HRESULT CAdapter::Query(
     pInfo->MaxCallerData = 56;
     pInfo->MaxCalleeData = 148;
     *pBufferSize = sizeof(ND_ADAPTER_INFO1);
+    HeapFree( GetProcessHeap(), 0, pAttr );
     return S_OK;
 }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: INDAdapterQuery.patch
Type: application/octet-stream
Size: 392 bytes
Desc: INDAdapterQuery.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100602/ca6e0950/attachment.obj>


More information about the ofw mailing list