Add missing frees / ref count rollback.
Reported-by: Coverity
Signed-off-by: Imre Deak <imre.deak@nokia.com>
Reviewed-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
sizeof(struct PVRSRV_BC_BUFFER) * sBufferInfo.ui32BufferCount,
psBCInfo->psBuffer, NULL);
err2:
+ psBCInfo->psFuncTable->pfnCloseBCDevice(psBCInfo->hExtDevice);
err1:
+ OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(*psBCPerContextInfo),
+ psBCPerContextInfo, NULL);
+ psBCInfo->ui32RefCount--;
+
return eError;
}